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)

        // let B directly equals A
        B = A.clone()

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: 7

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: catalyst-team/catalyst
Commit Name: f93beff338925cc1bf1b3ff1b32a2c440a4c9427
Time: 2020-04-21
Author: scitator@gmail.com
File Name: tests/_tests_scripts/z_mvp_mnist_gan.py
Class Name: CustomRunner
Method Name: _handle_batch