2aa7c57547ec43271a9f1c6906dd6989d8cbe34f,face_alignment/utils.py,,flip,#,211
Before Change
tensor = cv2.flip(tensor, 1).reshape(tensor.shape)
if was_squeezed:
tensor = np.expand_dims(tensor, axis=0)
return torch.from_numpy(tensor)
After Change
if was_squeezed:
tensor = np.expand_dims(tensor, axis=0)
tensor = torch.from_numpy(tensor)
if was_cuda:
tensor = tensor.cuda()
return tensor
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: 1adrianb/face-alignment
Commit Name: 2aa7c57547ec43271a9f1c6906dd6989d8cbe34f
Time: 2017-10-07
Author: bulat.adrian@gmail.com
File Name: face_alignment/utils.py
Class Name:
Method Name: flip
Project Name: kymatio/kymatio
Commit Name: 45bc77266ba893c3ec65cc8661a1b66abe354671
Time: 2018-12-14
Author: janden@flatironinstitute.org
File Name: kymatio/scattering3d/tests/test_scattering3d.py
Class Name:
Method Name: test_larger_scales
Project Name: kymatio/kymatio
Commit Name: 45bc77266ba893c3ec65cc8661a1b66abe354671
Time: 2018-12-14
Author: janden@flatironinstitute.org
File Name: kymatio/scattering3d/tests/test_scattering3d.py
Class Name:
Method Name: test_scattering_methods