From 35855bf860a49ab71c683cb4677293a58f780f44 Mon Sep 17 00:00:00 2001 From: Pyre Bot Jr <> Date: Thu, 24 Jun 2021 05:31:03 -0700 Subject: [PATCH] suppress errors in `vision/fair/pytorch3d` Differential Revision: D29360359 fbshipit-source-id: 9e91e8499a23e30a5fc39f8f6444b2db9f6b4142 --- pytorch3d/ops/laplacian_matrices.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pytorch3d/ops/laplacian_matrices.py b/pytorch3d/ops/laplacian_matrices.py index c1b5b391..fb898dec 100644 --- a/pytorch3d/ops/laplacian_matrices.py +++ b/pytorch3d/ops/laplacian_matrices.py @@ -100,6 +100,7 @@ def cot_laplacian( s = 0.5 * (A + B + C) # note that the area can be negative (close to 0) causing nans after sqrt() # we clip it to a small positive value + # pyre-fixme[16]: `float` has no attribute `clamp_`. area = (s * (s - A) * (s - B) * (s - C)).clamp_(min=eps).sqrt() # Compute cotangents of angles, of shape (sum(F_n), 3)