Skip to content

Commit feb5d36

Browse files
bottlerfacebook-github-bot
authored andcommitted
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
1 parent db1f7c4 commit feb5d36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_points_to_volumes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,8 @@ def single_point(self, device, splat: bool, align_corners: bool):
567567
splat,
568568
)
569569

570-
self.assertIs(volume_densities, volume_densities_)
571-
self.assertIs(volume_features, volume_features_)
570+
self.assertTrue(volume_densities_.is_set_to(volume_densities))
571+
self.assertTrue(volume_features_.is_set_to(volume_features))
572572

573573
if align_corners:
574574
volume_densities_expected[0, 0, 2, 3, 4] = point_weight

0 commit comments

Comments
 (0)