mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 03:42:50 +08:00
suppress errors in vision/fair/pytorch3d
Differential Revision: D23180198 fbshipit-source-id: cad1fa7ba9935f3ca20410a2575e173999c04be1
This commit is contained in:
parent
7f2f95f225
commit
f03aa5803b
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user