Commit feb5d363 authored by Jeremy Reizenstein's avatar Jeremy Reizenstein Committed by Facebook GitHub Bot
Browse files

points2vols test fix

Summary: Fix tests which depended on output tensors being identical to input ones, which now fail in main PyTorch branch because of some change in autograd. The functions still work in-place.

Reviewed By: patricklabatut

Differential Revision: D34375817

fbshipit-source-id: 295ae195f75eab6c7abab412c997470d8de8add1
parent db1f7c45
......@@ -567,8 +567,8 @@ class TestRawFunction(TestCaseMixin, unittest.TestCase):
splat,
)
self.assertIs(volume_densities, volume_densities_)
self.assertIs(volume_features, volume_features_)
self.assertTrue(volume_densities_.is_set_to(volume_densities))
self.assertTrue(volume_features_.is_set_to(volume_features))
if align_corners:
volume_densities_expected[0, 0, 2, 3, 4] = point_weight
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment