6a4fa82792bddc6126eaf944956f49f0a0cb7ca7,test/filters/test_sobel.py,TestSobel,test_jit,#TestSobel#,308
Before Change
@torch.jit.script
def op_script(input):
return kornia.filters.sobel(input)
img = torch.rand(2, 3, 4, 5).to(device)
actual = op_script(img)
expected = kornia.filters.sobel(img)
assert_allclose(actual, expected)
After Change
raise_exception=True)
def test_jit(self, device, dtype):
img = torch.rand(2, 3, 4, 5, device=device, dtype=dtype)
op = kornia.filters.sobel
op_script = torch.jit.script(op)
expected = op(img)
actual = op_script(img)
assert_allclose(actual, expected)
def test_module(self, device, dtype):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 14
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_jit
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_jit
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: TestSpatialGradient
Method Name: test_jit