From a5cbb624c1b74ea319bcd9d40697d9bf9a6c0bcd Mon Sep 17 00:00:00 2001 From: Simon Moisselin Date: Thu, 30 Sep 2021 05:09:12 -0700 Subject: [PATCH] Fix typo in chamfer loss docstring (#862) Summary: y_lengths is about `y`, not `x`. Pull Request resolved: https://github.com/facebookresearch/pytorch3d/pull/862 Reviewed By: bottler Differential Revision: D31304434 Pulled By: patricklabatut fbshipit-source-id: 1db4cd57677fc018c229e02172f95ffa903d75eb --- pytorch3d/loss/chamfer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch3d/loss/chamfer.py b/pytorch3d/loss/chamfer.py index 5b6d86f7..485b5874 100644 --- a/pytorch3d/loss/chamfer.py +++ b/pytorch3d/loss/chamfer.py @@ -91,7 +91,7 @@ def chamfer_distance( x_lengths: Optional LongTensor of shape (N,) giving the number of points in each cloud in x. y_lengths: Optional LongTensor of shape (N,) giving the number of points in each - cloud in x. + cloud in y. x_normals: Optional FloatTensor of shape (N, P1, D). y_normals: Optional FloatTensor of shape (N, P2, D). weights: Optional FloatTensor of shape (N,) giving weights for