Skip to content

Commit

Permalink
points2vols test fix
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bottler authored and facebook-github-bot committed Feb 21, 2022
1 parent db1f7c4 commit feb5d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_points_to_volumes.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@ def single_point(self, device, splat: bool, align_corners: bool):
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
Expand Down

0 comments on commit feb5d36

Please sign in to comment.