6a4fa82792bddc6126eaf944956f49f0a0cb7ca7,test/filters/test_sobel.py,TestSobel,test_noncontiguous,#TestSobel#,281
Before Change
def test_noncontiguous(self, device):
batch_size = 3
inp = torch.rand(3, 5, 5).expand(batch_size, -1, -1, -1).to(device)
actual = kornia.filters.sobel(inp)
expected = actual
assert_allclose(actual, actual)
def test_gradcheck_unnorm(self, device):
After Change
def test_noncontiguous(self, device, dtype):
batch_size = 3
inp = torch.rand(3, 5, 5, device=device, dtype=dtype).expand(batch_size, -1, -1, -1)
actual = kornia.filters.sobel(inp)
expected = actual
assert_allclose(actual, actual)
def test_gradcheck_unnorm(self, device, dtype):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: arraiy/torchgeometry
Commit Name: 6a4fa82792bddc6126eaf944956f49f0a0cb7ca7
Time: 2020-12-22
Author: edgar.riba@gmail.com
File Name: test/filters/test_sobel.py
Class Name: TestSobel
Method Name: test_noncontiguous
Project Name: arraiy/torchgeometry
Commit Name: 6a4fa82792bddc6126eaf944956f49f0a0cb7ca7
Time: 2020-12-22
Author: edgar.riba@gmail.com
File Name: test/filters/test_blur.py
Class Name: TestBoxBlur
Method Name: test_noncontiguous
Project Name: arraiy/torchgeometry
Commit Name: 6a4fa82792bddc6126eaf944956f49f0a0cb7ca7
Time: 2020-12-22
Author: edgar.riba@gmail.com
File Name: test/filters/test_motion.py
Class Name: TestMotionBlur
Method Name: test_noncontiguous
Project Name: arraiy/torchgeometry
Commit Name: 6a4fa82792bddc6126eaf944956f49f0a0cb7ca7
Time: 2020-12-22
Author: edgar.riba@gmail.com
File Name: test/filters/test_median.py
Class Name: TestMedianBlur
Method Name: test_noncontiguous