850ad2cde2dbc85043099a12f5ba2d1ef7687ae7,test/test_functional.py,Tester,test_transform_points,#Tester#,97
Before Change
points_dst_to_src = dgm.transform_points(src_homo_dst, points_dst)
// projected should be equal as initial
error = torch.sum((points_src - points_dst_to_src) ** 2)
self.assertAlmostEqual(error.item(), 0.0)
def test_transform_points_gradcheck(self):
// generate input data
After Change
points_dst_to_src = dgm.transform_points(src_homo_dst, points_dst)
// projected should be equal as initial
error = compute_mse(points_src, points_dst_to_src)
self.assertAlmostEqual(error.item(), 0.0, places=4)
def test_transform_points_gradcheck(self):
// generate input data
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: arraiy/torchgeometry
Commit Name: 850ad2cde2dbc85043099a12f5ba2d1ef7687ae7
Time: 2018-08-29
Author: edgar.riba@gmail.com
File Name: test/test_functional.py
Class Name: Tester
Method Name: test_transform_points
Project Name: arraiy/torchgeometry
Commit Name: 850ad2cde2dbc85043099a12f5ba2d1ef7687ae7
Time: 2018-08-29
Author: edgar.riba@gmail.com
File Name: test/test_functional.py
Class Name: Tester
Method Name: test_rad2deg
Project Name: arraiy/torchgeometry
Commit Name: 850ad2cde2dbc85043099a12f5ba2d1ef7687ae7
Time: 2018-08-29
Author: edgar.riba@gmail.com
File Name: test/test_functional.py
Class Name: Tester
Method Name: test_deg2rad