08143b8126d203ece62227f3b4bf157eeff5e58f,test/test_imgwarp.py,TestRemap,test_jit,#TestRemap#,366

Before Change


        grid += 1.  // apply some shift

        input = (img, grid[..., 0], grid[..., 1],)
        remap_traced = torch.jit.trace(tgm.remap, input)

        assert_allclose(tgm.remap(*input), remap_traced(*input))

After Change


        input = (img, grid[..., 0], grid[..., 1],)
        actual = op_script(*input)
        expected = tgm.remap(*input)
        assert_allclose(actual, expected)

    def test_jit_trace(self):
        @torch.jit.script
        def op_script(input, map1, map2):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: arraiy/torchgeometry
Commit Name: 08143b8126d203ece62227f3b4bf157eeff5e58f
Time: 2019-05-04
Author: edgar.riba@gmail.com
File Name: test/test_imgwarp.py
Class Name: TestRemap
Method Name: test_jit


Project Name: arraiy/torchgeometry
Commit Name: 25e9dddf8c73879c18a35da9a4ccac47833a6eb2
Time: 2019-05-12
Author: diegovd0296@gmail.com
File Name: test/test_image.py
Class Name: TestGaussianBlur
Method Name: test_jit


Project Name: pantsbuild/pants
Commit Name: 778881701b8ca940534f520b07a28e9d19640bc6
Time: 2017-04-27
Author: ndh@baroquebobcat.com
File Name: src/python/pants/engine/legacy/graph.py
Class Name: LegacyBuildGraph
Method Name: _index


Project Name: cornellius-gp/gpytorch
Commit Name: f7b10102a3a0b08272634347ff3a65efd3df18ce
Time: 2019-04-04
Author: gpleiss@gmail.com
File Name: test/functions/test_root_decomposition.py
Class Name: TestRootDecomposition
Method Name: test_root_decomposition