35ea7282f484091070e0e2af6754902ec0cf34b1,syft/frameworks/torch/tensors/interpreters/precision.py,FixedPrecisionTensor,mul_and_div,#FixedPrecisionTensor#Any#Any#,286

Before Change


        if isinstance(other, (int, torch.Tensor, AdditiveSharingTensor)):
            new_self = self.child
            new_other = other
        elif isinstance(other, float):
            raise NotImplementedError(
                "Can"t multiply or divide a FixedPrecisionTensor with a float value"
            )

After Change


        
        changed_sign = False
        if isinstance(other, (float, torch.FloatTensor)):
            other = torch.tensor(other).fix_prec(**self.get_class_attributes())
            other = other.child

        if isinstance(other, FixedPrecisionTensor):
            if self.precision_fractional != other.precision_fractional:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: OpenMined/PySyft
Commit Name: 35ea7282f484091070e0e2af6754902ec0cf34b1
Time: 2020-11-09
Author: rladhkstn8@gmail.com
File Name: syft/frameworks/torch/tensors/interpreters/precision.py
Class Name: FixedPrecisionTensor
Method Name: mul_and_div


Project Name: allenai/allennlp
Commit Name: 87a61ad92a9e0129e5c81c242f0ea96d77e6b0af
Time: 2020-08-19
Author: akshita23bhagia@gmail.com
File Name: allennlp/training/metrics/attachment_scores.py
Class Name: AttachmentScores
Method Name: __call__


Project Name: microsoft/nni
Commit Name: 6c1fe5c811f82c571af94f787b4721f3a1cc7ca4
Time: 2019-11-25
Author: scottyugochang@gmail.com
File Name: src/sdk/pynni/nni/nas/pytorch/darts/mutator.py
Class Name: DartsMutator
Method Name: sample_final