Commit 44d2a9b6 authored by Pyre Bot Jr's avatar Pyre Bot Jr Committed by Facebook GitHub Bot
Browse files

suppress errors in `vision/fair/pytorch3d`

Differential Revision: D29573014

fbshipit-source-id: 87083e30d757fcceb4e380edc9973e07e6da6c76
parent 10eb3892
...@@ -385,7 +385,6 @@ def splat_points_to_volumes( ...@@ -385,7 +385,6 @@ def splat_points_to_volumes(
volume_features.scatter_add_(2, idx_valid, w_valid * points_features) volume_features.scatter_add_(2, idx_valid, w_valid * points_features)
# divide each feature by the total weight of the votes # divide each feature by the total weight of the votes
# pyre-fixme[20]: Argument `max` expected.
volume_features = volume_features / volume_densities.view(ba, 1, n_voxels).clamp( volume_features = volume_features / volume_densities.view(ba, 1, n_voxels).clamp(
min_weight min_weight
) )
...@@ -495,7 +494,6 @@ def round_points_to_volumes( ...@@ -495,7 +494,6 @@ def round_points_to_volumes(
volume_features.scatter_add_(2, idx_valid, w_valid * points_features) volume_features.scatter_add_(2, idx_valid, w_valid * points_features)
# divide each feature by the total weight of the votes # divide each feature by the total weight of the votes
# pyre-fixme[20]: Argument `max` expected.
volume_features = volume_features / volume_densities.view(ba, 1, n_voxels).clamp( volume_features = volume_features / volume_densities.view(ba, 1, n_voxels).clamp(
1.0 1.0
) )
......
...@@ -209,7 +209,6 @@ def softmax_rgb_blend( ...@@ -209,7 +209,6 @@ def softmax_rgb_blend(
# Also apply exp normalize trick for the background color weight. # Also apply exp normalize trick for the background color weight.
# Clamp to ensure delta is never 0. # Clamp to ensure delta is never 0.
# pyre-fixme[20]: Argument `max` expected.
# pyre-fixme[6]: Expected `Tensor` for 1st param but got `float`. # pyre-fixme[6]: Expected `Tensor` for 1st param but got `float`.
delta = torch.exp((eps - z_inv_max) / blend_params.gamma).clamp(min=eps) delta = torch.exp((eps - z_inv_max) / blend_params.gamma).clamp(min=eps)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment