622e0e1a9ed3099994697f86ae34f83d056626d8,test/test_image.py,TestBgRToRgb,test_gradcheck,#TestBgRToRgb#,192
Before Change
def test_gradcheck(self):
// prepare input data
data = torch.ones(2, 3, 1, 1)
data = utils.tensor_to_gradcheck_var(data) // to var
assert gradcheck(image.BgrToRgb(), (data,),
After Change
def test_gradcheck(self):
// prepare input data
data = torch.tensor([[[1., 1.],
[1., 1.]],
[[2., 2.],
[2., 2.]],
[[3., 3.],
[3., 3.]]]) // 3x2x2
data = utils.tensor_to_gradcheck_var(data) // to var
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: arraiy/torchgeometry
Commit Name: 622e0e1a9ed3099994697f86ae34f83d056626d8
Time: 2019-05-06
Author: diegovd0296@gmail.com
File Name: test/test_image.py
Class Name: TestBgRToRgb
Method Name: test_gradcheck
Project Name: arraiy/torchgeometry
Commit Name: 622e0e1a9ed3099994697f86ae34f83d056626d8
Time: 2019-05-06
Author: diegovd0296@gmail.com
File Name: test/test_image.py
Class Name: TestBgRToRgb
Method Name: test_bgr_to_rgb
Project Name: arraiy/torchgeometry
Commit Name: 8eea3164e28ac16fd86c7f072d38f1f901ca9b07
Time: 2019-10-01
Author: ducha.aiki@gmail.com
File Name: test/feature/test_affine_shape_estimator.py
Class Name: TestLAFAffineShapeEstimator
Method Name: test_gradcheck