Skip to content

Commit

Permalink
suppress errors in vision/fair/pytorch3d
Browse files Browse the repository at this point in the history
Differential Revision: D29573014

fbshipit-source-id: 87083e30d757fcceb4e380edc9973e07e6da6c76
  • Loading branch information
Pyre Bot Jr authored and facebook-github-bot committed Jul 7, 2021
1 parent 10eb389 commit 44d2a9b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions pytorch3d/ops/points_to_volumes.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ def splat_points_to_volumes(
volume_features.scatter_add_(2, idx_valid, w_valid * points_features)

# 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(
min_weight
)
Expand Down Expand Up @@ -495,7 +494,6 @@ def round_points_to_volumes(
volume_features.scatter_add_(2, idx_valid, w_valid * points_features)

# 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(
1.0
)
Expand Down
1 change: 0 additions & 1 deletion pytorch3d/renderer/blending.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ 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)

Expand Down

0 comments on commit 44d2a9b

Please sign in to comment.