From 876bdff2f658e3b8e82c8b9650de1eef9ccb26f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20R=C3=BCnz?= Date: Tue, 7 Jul 2020 10:52:50 -0700 Subject: [PATCH] Fix function call in Transform3d documentation (#233) Summary: The documentation of `Transform3d` highlights that the class handles points as well as normals. However, `transform_points` is applied to points and normals in the documentation instead of using `transform_normals` for normals, which I believe was intended. This pull request fixes this typo in the documentation. Pull Request resolved: https://github.com/facebookresearch/pytorch3d/pull/233 Reviewed By: bottler Differential Revision: D22287642 Pulled By: nikhilaravi fbshipit-source-id: 0bc8754097b2e17a34fa3071319d00b78c3bc803 --- pytorch3d/transforms/transform3d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch3d/transforms/transform3d.py b/pytorch3d/transforms/transform3d.py index 455edfeb..21ec6e9e 100644 --- a/pytorch3d/transforms/transform3d.py +++ b/pytorch3d/transforms/transform3d.py @@ -21,7 +21,7 @@ class Transform3d: points = torch.randn(N, P, 3) normals = torch.randn(N, P, 3) points_transformed = t.transform_points(points) # => (N, P, 3) - normals_transformed = t.transform_points(normals) # => (N, P, 3) + normals_transformed = t.transform_normals(normals) # => (N, P, 3) BROADCASTING