From eabb5114107049970444f1cea588a81d754fd708 Mon Sep 17 00:00:00 2001 From: generatedunixname1417043136753450 Date: Sun, 22 Feb 2026 07:08:02 -0800 Subject: [PATCH] fbcode/vision/fair/pytorch3d/pytorch3d/loss/mesh_laplacian_smoothing.py Reviewed By: bottler Differential Revision: D93709347 fbshipit-source-id: 69710e6082a0785126a121e26f1d96a571360f1d --- pytorch3d/loss/mesh_laplacian_smoothing.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pytorch3d/loss/mesh_laplacian_smoothing.py b/pytorch3d/loss/mesh_laplacian_smoothing.py index 02037841..8ec38939 100644 --- a/pytorch3d/loss/mesh_laplacian_smoothing.py +++ b/pytorch3d/loss/mesh_laplacian_smoothing.py @@ -114,9 +114,7 @@ def mesh_laplacian_smoothing(meshes, method: str = "uniform"): if method == "cot": norm_w = torch.sparse.sum(L, dim=1).to_dense().view(-1, 1) idx = norm_w > 0 - # pyre-fixme[58]: `/` is not supported for operand types `float` and - # `Tensor`. - norm_w[idx] = 1.0 / norm_w[idx] + norm_w[idx] = torch.reciprocal(norm_w[idx]) else: L_sum = torch.sparse.sum(L, dim=1).to_dense().view(-1, 1) norm_w = 0.25 * inv_areas