suppress errors in vision/fair/pytorch3d

Differential Revision: D23180198

fbshipit-source-id: cad1fa7ba9935f3ca20410a2575e173999c04be1
This commit is contained in:
root@sandcastle5743.frc3.facebook.com 2020-08-17 18:07:13 -07:00 committed by Facebook GitHub Bot
parent 7f2f95f225
commit f03aa5803b

View File

@ -189,6 +189,8 @@ def softmax_rgb_blend(
# Also apply exp normalize trick for the background color weight.
# Clamp to ensure delta is never 0.
# pyre-fixme[20]: Argument `max` expected.
# pyre-fixme[6]: Expected `Tensor` for 1st param but got `float`.
delta = torch.exp((eps - z_inv_max) / blend_params.gamma).clamp(min=eps)
# Normalize weights.