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: 4

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: arraiy/torchgeometry
Commit Name: 3d17747ae02c6199db77b93ae44ef79d35b1df36
Time: 2019-11-19
Author: edgar.riba@gmail.com
File Name: test/geometry/test_conversions.py
Class Name: TestConvertPointsToHomogeneous
Method Name: test_gradcheck


Project Name: arraiy/torchgeometry
Commit Name: 3d17747ae02c6199db77b93ae44ef79d35b1df36
Time: 2019-11-19
Author: edgar.riba@gmail.com
File Name: test/geometry/test_conversions.py
Class Name: TestConvertPointsFromHomogeneous
Method Name: test_gradcheck


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