91abf0d795b4876e51ad23f4543f7fc6383fc718,torch_geometric/transform/random_flip.py,RandomFlip,__call__,#RandomFlip#Any#,25

Before Change



    def __call__(self, data):
        if random.random() < self.p:
            return flip(data, self.axis)
        return data

After Change



    def __call__(self, data):
        if random.random() < self.p:
            data.pos[:, self.axis] = -data.pos[:, self.axis]
        return data

    def __repr__(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: 91abf0d795b4876e51ad23f4543f7fc6383fc718
Time: 2018-05-12
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/transform/random_flip.py
Class Name: RandomFlip
Method Name: __call__


Project Name: albu/albumentations
Commit Name: 169e32afc8e74335fa68185aa909d10b826a5bf2
Time: 2018-10-17
Author: dima3001@yandex.ru
File Name: albumentations/augmentations/functional.py
Class Name:
Method Name: hflip


Project Name: albu/albumentations
Commit Name: 169e32afc8e74335fa68185aa909d10b826a5bf2
Time: 2018-10-17
Author: dima3001@yandex.ru
File Name: albumentations/augmentations/functional.py
Class Name:
Method Name: vflip


Project Name: arraiy/torchgeometry
Commit Name: 56acb451088f67b0f00212f2e7d74df8eea189ee
Time: 2020-10-13
Author: 14985132+FGeri@users.noreply.github.com
File Name: kornia/geometry/transform/flips.py
Class Name:
Method Name: vflip