0234315776751221ef9da5d2073e32f9f54c01bb,test/color/test_gray.py,TestBgrToGrayscale,test_gradcheck,#TestBgrToGrayscale#Any#Any#,122
Before Change
def test_gradcheck(self, device, dtype):
batch_size, channels, height, width = 2, 3, 4, 5
img = torch.ones(batch_size, channels, height, width).to(device, dtype)
img = utils.tensor_to_gradcheck_var(img) // to var
assert gradcheck(kornia.bgr_to_grayscale, (img,), raise_exception=True)
def test_module(self, device, dtype):
After Change
@pytest.mark.grad
def test_gradcheck(self, device, dtype):
B, C, H, W = 2, 3, 4, 4
img = torch.ones(B, C, H, W, device=device, dtype=torch.float64, requires_grad=True)
assert gradcheck(kornia.bgr_to_grayscale, (img,), raise_exception=True)
@pytest.mark.jit
def test_jit(self, device, dtype):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: arraiy/torchgeometry
Commit Name: 0234315776751221ef9da5d2073e32f9f54c01bb
Time: 2020-11-01
Author: edgar.riba@gmail.com
File Name: test/color/test_gray.py
Class Name: TestBgrToGrayscale
Method Name: test_gradcheck
Project Name: arraiy/torchgeometry
Commit Name: 0234315776751221ef9da5d2073e32f9f54c01bb
Time: 2020-11-01
Author: edgar.riba@gmail.com
File Name: test/color/test_gray.py
Class Name: TestRgbToGrayscale
Method Name: test_gradcheck
Project Name: allenai/allennlp
Commit Name: e2f66c0de2600308044ec3ab7731dae9017378fa
Time: 2018-12-20
Author: vidurj@allenai.org
File Name: allennlp/modules/seq2seq_encoders/bidirectional_language_model_transformer.py
Class Name:
Method Name: subsequent_mask