2d3ec435b0d22e8abb3c37d80bdaff248d98d5b4,test/test_functional.py,,test_convert_points_from_homogeneous,#Any#Any#,12

Before Change


    // generate input data
    points_h = torch.rand(2, 3)
    if expand:
        points_h = torch.rand(batch_size, 2, 3)
    points_h[..., -1] = 1.0

    // to euclidean
    points = tgm.convert_points_from_homogeneous(points_h)

After Change


        num_points = 2
        num_dims = 2
        eye_size = 3  // identity 3x3
        points_src = torch.rand(batch_size, 2, num_dims)
        points_src = utils.tensor_to_gradcheck_var(points_src)  // to var
        dst_homo_src = utils.create_random_homography(batch_size, eye_size)
        dst_homo_src = utils.tensor_to_gradcheck_var(dst_homo_src)  // to var
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: arraiy/torchgeometry
Commit Name: 2d3ec435b0d22e8abb3c37d80bdaff248d98d5b4
Time: 2019-01-02
Author: edgar.riba@gmail.com
File Name: test/test_functional.py
Class Name:
Method Name: test_convert_points_from_homogeneous


Project Name: pytorch/examples
Commit Name: 645c7c386e62d2fb1d50f4621c1a52645a13869f
Time: 2018-04-24
Author: soumith@gmail.com
File Name: word_language_model/generate.py
Class Name:
Method Name:


Project Name: arraiy/torchgeometry
Commit Name: 3201b950251f7b76d51ce092d4ec1230d742cf2d
Time: 2019-01-01
Author: edgar.riba@gmail.com
File Name: test/test_functional.py
Class Name:
Method Name: test_convert_points_to_homogeneous