suppress errors in vision/fair/pytorch3d

Differential Revision: D31496551

fbshipit-source-id: 705fd88f319875db3f7938a2946c48a51ea225f5
This commit is contained in:
Pyre Bot Jr
2021-10-07 21:56:41 -07:00
committed by Facebook GitHub Bot
parent 6dfa326922
commit 6d36c1e2b0
10 changed files with 3 additions and 12 deletions

View File

@@ -117,7 +117,6 @@ def marching_cubes_naive(
volume_data_batch = volume_data_batch.detach().cpu()
batched_verts, batched_faces = [], []
D, H, W = volume_data_batch.shape[1:]
# pyre-ignore [16]
volume_size_xyz = volume_data_batch.new_tensor([W, H, D])[None]
if return_local_coords:

View File

@@ -435,7 +435,6 @@ def _add_points_features_to_volume_densities_features_python(
if volume_features is None:
# initialize features if not passed in
# pyre-fixme[16]: `Tensor` has no attribute `new_zeros`.
volume_features_flatten = volume_densities.new_zeros(ba, feature_dim, n_voxels)
else:
# otherwise just flatten
@@ -478,7 +477,6 @@ def _check_points_to_volumes_inputs(
mask: Optional[torch.Tensor] = None,
):
# pyre-fixme[16]: `Tuple` has no attribute `values`.
max_grid_size = grid_sizes.max(dim=0).values
if torch.prod(max_grid_size) > volume_densities.shape[1]:
raise ValueError(

View File

@@ -134,7 +134,6 @@ def sample_farthest_points_naive(
# Initialize closest distances to inf, shape: (P,)
# This will be updated at each iteration to track the closest distance of the
# remaining points to any of the selected points
# pyre-fixme[16]: `torch.Tensor` has no attribute new_full.
closest_dists = points.new_full(
(lengths[n],), float("inf"), dtype=torch.float32
)