6a4fa82792bddc6126eaf944956f49f0a0cb7ca7,test/filters/test_sobel.py,TestSobel,test_magnitude,#TestSobel#,261

Before Change


            [0., 0., 0., 0., 0.],
        ]]]).to(device)

        expected = torch.tensor([[[
            [0., 1.4142, 2.0, 1.4142, 0.],
            [1.4142, 4.2426, 4.00, 4.2426, 1.4142],
            [2.0, 4.0000, 0.00, 4.0000, 2.0],
            [1.4142, 4.2426, 4.00, 4.2426, 1.4142],
            [0., 1.4142, 2.0, 1.4142, 0.],
        ]]]).to(device)

        edges = kornia.filters.sobel(inp, normalized=False, eps=0.)
        assert_allclose(edges, expected)

After Change


            [0., 0., 0., 0., 0.],
        ]]], device=device, dtype=dtype)

        expected = torch.tensor([[[
            [0., 1.4142, 2.0, 1.4142, 0.],
            [1.4142, 4.2426, 4.00, 4.2426, 1.4142],
            [2.0, 4.0000, 0.00, 4.0000, 2.0],
            [1.4142, 4.2426, 4.00, 4.2426, 1.4142],
            [0., 1.4142, 2.0, 1.4142, 0.],
        ]]], device=device, dtype=dtype)

        edges = kornia.filters.sobel(inp, normalized=False, eps=0.)
        assert_allclose(edges, expected)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 6

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_magnitude


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_edges_norm


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_edges_sep


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_edges


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_edges_sep_norm


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_kernel_5x5


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_kernel_3x3


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: TestSpatialGradient3d
Method Name: test_edges