pytorch3d compatibility

Summary: Making meshrcnn compatible with new PyTorch3D features/API changes.

Reviewed By: nikhilaravi

Differential Revision: D21149516

fbshipit-source-id: 1c7b8c1c1f5a2abe7d379fee10ded5d2db21515a
This commit is contained in:
Georgia Gkioxari 2020-04-20 23:02:25 -07:00 committed by Facebook GitHub Bot
parent 9ef1ee8455
commit f2b229c1d1

View File

@ -145,6 +145,9 @@ def knn_points(
if p1.shape[2] != p2.shape[2]:
raise ValueError("pts1 and pts2 must have the same point dimension.")
p1 = p1.contiguous()
p2 = p2.contiguous()
P1 = p1.shape[1]
P2 = p2.shape[1]