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
w_offset:w_offset + self.opt.fineSize]
if (not self.opt.no_flip) and random.random() < 0.5:
A = torch.flip(A, [2])
// 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_()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
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: rusty1s/pytorch_geometric
Commit Name: 37847c77889e39143034af9fe0d4b92bc74e992a
Time: 2018-03-02
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/datasets/utils/ply.py
Class Name:
Method Name: read_ply
Project Name: cornellius-gp/gpytorch
Commit Name: 9b664bd7cd8dbb9657626166ba61887ed06774d7
Time: 2017-09-13
Author: gpleiss@gmail.com
File Name: gpytorch/utils/toeplitz.py
Class Name:
Method Name: index_coef_to_sparse
Project Name: dpressel/mead-baseline
Commit Name: 9a78373369981ad1cf032fbcc0c675498f32967f
Time: 2020-05-01
Author: dpressel@gmail.com
File Name: mead/pytorch/exporters.py
Class Name:
Method Name: create_data_dict