Skip to content

Commit 0e435c2

Browse files
generatedunixname1417043136753450meta-codesync[bot]
authored andcommitted
fbcode/vision/fair/pytorch3d/pytorch3d/ops/points_alignment.py
Reviewed By: sgrigory Differential Revision: D93712744 fbshipit-source-id: 660560cdef9ff1d2173ae06de54df31766ee537f
1 parent d631b56 commit 0e435c2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pytorch3d/ops/points_alignment.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ def iterative_closest_point(
182182
t_history.append(SimilarityTransform(R, T, s))
183183

184184
# compute the root mean squared error
185-
# pyre-fixme[58]: `**` is not supported for operand types `Tensor` and `int`.
186-
Xt_sq_diff = ((Xt - Xt_nn_points) ** 2).sum(2)
185+
Xt_sq_diff = torch.square(Xt - Xt_nn_points).sum(2)
187186
rmse = oputil.wmean(Xt_sq_diff[:, :, None], mask_X).sqrt()[:, 0, 0]
188187

189188
# compute the relative rmse

0 commit comments

Comments
 (0)