suppress errors in vision/fair/pytorch3d

Differential Revision: D29360359

fbshipit-source-id: 9e91e8499a23e30a5fc39f8f6444b2db9f6b4142
This commit is contained in:
Pyre Bot Jr 2021-06-24 05:31:03 -07:00 committed by Facebook GitHub Bot
parent 07a5a68d50
commit 35855bf860

View File

@ -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)