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