mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 03:42:50 +08:00
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:
parent
9ef1ee8455
commit
f2b229c1d1
@ -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]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user