a7d92f7020dfe8854430ef13ed2923b2606a6262,torchsample/transforms/affine_transforms.py,RandomShear,__call__,#RandomShear#,443

Before Change


        if self.lazy:
            return Shear(shear, lazy=True)(x)
        else:
            if y is None:
                x_transformed = Shear(shear, 
                                      interp=self.interp)(x)
                return x_transformed
            else:
                x_transformed, y_transformed = Shear(shear,
                                                     interp=self.interp)(x,y)
                return x_transformed, y_transformed
      

class Shear(object):

    def __init__(self,
                 value,

After Change


            return Shear(shear, 
                         lazy=True)(inputs[0])
        else:
            outputs = Shear(shear,
                            interp=self.interp)(*inputs)
            return outputs


class RandomChoiceShear(object):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 12

Instances


Project Name: ncullen93/torchsample
Commit Name: a7d92f7020dfe8854430ef13ed2923b2606a6262
Time: 2017-05-11
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/affine_transforms.py
Class Name: RandomShear
Method Name: __call__


Project Name: ncullen93/torchsample
Commit Name: a7d92f7020dfe8854430ef13ed2923b2606a6262
Time: 2017-05-11
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/affine_transforms.py
Class Name: RandomShear
Method Name: __call__


Project Name: ncullen93/torchsample
Commit Name: a7d92f7020dfe8854430ef13ed2923b2606a6262
Time: 2017-05-11
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/affine_transforms.py
Class Name: RandomZoom
Method Name: __call__


Project Name: ncullen93/torchsample
Commit Name: a7d92f7020dfe8854430ef13ed2923b2606a6262
Time: 2017-05-11
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/affine_transforms.py
Class Name: RandomAffine
Method Name: __call__


Project Name: ncullen93/torchsample
Commit Name: a7d92f7020dfe8854430ef13ed2923b2606a6262
Time: 2017-05-11
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/affine_transforms.py
Class Name: RandomRotate
Method Name: __call__


Project Name: ncullen93/torchsample
Commit Name: a7d92f7020dfe8854430ef13ed2923b2606a6262
Time: 2017-05-11
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/affine_transforms.py
Class Name: RandomTranslate
Method Name: __call__