929b81043c1a274cbd2396ac77714d344878c488,data/aligned_dataset.py,AlignedDataset,__getitem__,#AlignedDataset#Any#,28

Before Change


               w_offset:w_offset + self.opt.fineSize]

        if (not self.opt.no_flip) and random.random() < 0.5:
            idx = [i for i in range(A.size(2) - 1, -1, -1)] // size(2)-1, size(2)-2, ... , 0
            idx = torch.LongTensor(idx)
            A = A.index_select(2, idx)

After Change


        // let B directly equals to A
        B = A.clone()
        A_flip = torch.flip(A, [2])
        B_flip = A_flip.clone()

        // Just zero the mask is fine if not offline_loading_mask.
        mask = A.clone().zero_()
        if self.opt.offline_loading_mask:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Zhaoyi-Yan/Shift-Net_pytorch
Commit Name: 929b81043c1a274cbd2396ac77714d344878c488
Time: 2020-03-13
Author: yanzhaoyi@outlook.com
File Name: data/aligned_dataset.py
Class Name: AlignedDataset
Method Name: __getitem__


Project Name: Zhaoyi-Yan/Shift-Net_pytorch
Commit Name: dc9aafd83851f7c55c6fe61702e281856ec023ca
Time: 2018-12-13
Author: yanzhaoyi@outlook.com
File Name: models/accelerated_shift_net/accelerated_InnerShiftTripleFunction.py
Class Name: AcceleratedInnerShiftTripleFunction
Method Name: forward


Project Name: biolab/orange3
Commit Name: f06fe08941aaeec787a57c8540c887eec3264547
Time: 2015-06-15
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/canvas/document/editlinksdialog.py
Class Name: GraphicsTextWidget
Method Name: sizeHint