Skip to content

Commit 767d68a

Browse files
gkioxarifacebook-github-bot
authored andcommitted
pointcloud structure
Summary: Revisions to Poincloud data structure with added normals The biggest changes form the previous version include: a) If the user provides tensor inputs, we make no assumption about padding. Padding is only for internal use for us to convert from list to padded b) If features are not provided or if the poincloud is empty, all forms of features are None. This is so that we don't waste memory on holding dummy tensors. Reviewed By: nikhilaravi Differential Revision: D19791851 fbshipit-source-id: 7e182f7bb14395cb966531653f6dd6b328fd999c
1 parent ba11c0b commit 767d68a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/common_testing.py

+8
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ def assertSeparate(self, tensor1, tensor2) -> None:
1616
tensor1.storage().data_ptr(), tensor2.storage().data_ptr()
1717
)
1818

19+
def assertNotSeparate(self, tensor1, tensor2) -> None:
20+
"""
21+
Verify that tensor1 and tensor2 have their data in the same locations.
22+
"""
23+
self.assertEqual(
24+
tensor1.storage().data_ptr(), tensor2.storage().data_ptr()
25+
)
26+
1927
def assertAllSeparate(self, tensor_list) -> None:
2028
"""
2129
Verify that all tensors in tensor_list have their data in

0 commit comments

Comments
 (0)