diff --git a/pytorch3d/loss/point_mesh_distance.py b/pytorch3d/loss/point_mesh_distance.py index 4a263c5a..da4fcb59 100644 --- a/pytorch3d/loss/point_mesh_distance.py +++ b/pytorch3d/loss/point_mesh_distance.py @@ -1,5 +1,6 @@ # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`. from pytorch3d import _C from pytorch3d.structures import Meshes, Pointclouds from torch.autograd import Function diff --git a/pytorch3d/ops/cubify.py b/pytorch3d/ops/cubify.py index cd82ec97..b2644708 100644 --- a/pytorch3d/ops/cubify.py +++ b/pytorch3d/ops/cubify.py @@ -44,6 +44,8 @@ def ravel_index(idx, dims) -> torch.Tensor: return linind +# pyre-fixme[56]: Decorator `torch.no_grad(...)` could not be called, because its +# type `no_grad` is not callable. @torch.no_grad() def cubify(voxels, thresh, device=None, align: str = "topleft") -> Meshes: r""" diff --git a/pytorch3d/ops/graph_conv.py b/pytorch3d/ops/graph_conv.py index 796df24c..e9bfa6c5 100644 --- a/pytorch3d/ops/graph_conv.py +++ b/pytorch3d/ops/graph_conv.py @@ -3,6 +3,8 @@ import torch import torch.nn as nn + +# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`. from pytorch3d import _C from torch.autograd import Function from torch.autograd.function import once_differentiable diff --git a/pytorch3d/ops/interp_face_attrs.py b/pytorch3d/ops/interp_face_attrs.py index 56d04dd7..5d8fe06c 100644 --- a/pytorch3d/ops/interp_face_attrs.py +++ b/pytorch3d/ops/interp_face_attrs.py @@ -1,6 +1,8 @@ # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import torch + +# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`. from pytorch3d import _C from torch.autograd import Function from torch.autograd.function import once_differentiable diff --git a/pytorch3d/ops/knn.py b/pytorch3d/ops/knn.py index 8dd9d86a..2bdf3634 100644 --- a/pytorch3d/ops/knn.py +++ b/pytorch3d/ops/knn.py @@ -4,6 +4,8 @@ from collections import namedtuple from typing import Union import torch + +# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`. from pytorch3d import _C from torch.autograd import Function from torch.autograd.function import once_differentiable diff --git a/pytorch3d/ops/mesh_face_areas_normals.py b/pytorch3d/ops/mesh_face_areas_normals.py index d58ad0b6..0490e5bb 100644 --- a/pytorch3d/ops/mesh_face_areas_normals.py +++ b/pytorch3d/ops/mesh_face_areas_normals.py @@ -1,6 +1,8 @@ # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import torch + +# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`. from pytorch3d import _C from torch.autograd import Function from torch.autograd.function import once_differentiable diff --git a/pytorch3d/ops/packed_to_padded.py b/pytorch3d/ops/packed_to_padded.py index 3e567b53..b3638119 100644 --- a/pytorch3d/ops/packed_to_padded.py +++ b/pytorch3d/ops/packed_to_padded.py @@ -1,6 +1,8 @@ # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import torch + +# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`. from pytorch3d import _C from torch.autograd import Function from torch.autograd.function import once_differentiable diff --git a/pytorch3d/renderer/blending.py b/pytorch3d/renderer/blending.py index 1bfa589b..a23937f3 100644 --- a/pytorch3d/renderer/blending.py +++ b/pytorch3d/renderer/blending.py @@ -5,6 +5,8 @@ from typing import NamedTuple, Sequence import numpy as np import torch + +# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`. from pytorch3d import _C diff --git a/pytorch3d/renderer/compositing.py b/pytorch3d/renderer/compositing.py index c04da4d6..aec75ebc 100644 --- a/pytorch3d/renderer/compositing.py +++ b/pytorch3d/renderer/compositing.py @@ -1,6 +1,8 @@ # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import torch + +# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`. from pytorch3d import _C diff --git a/pytorch3d/renderer/mesh/rasterize_meshes.py b/pytorch3d/renderer/mesh/rasterize_meshes.py index 984d3352..0d81b540 100644 --- a/pytorch3d/renderer/mesh/rasterize_meshes.py +++ b/pytorch3d/renderer/mesh/rasterize_meshes.py @@ -5,6 +5,8 @@ from typing import Optional import numpy as np import torch + +# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`. from pytorch3d import _C diff --git a/pytorch3d/renderer/points/rasterize_points.py b/pytorch3d/renderer/points/rasterize_points.py index 1d86dbe8..400ae3c9 100644 --- a/pytorch3d/renderer/points/rasterize_points.py +++ b/pytorch3d/renderer/points/rasterize_points.py @@ -3,6 +3,8 @@ from typing import Optional import torch + +# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`. from pytorch3d import _C from pytorch3d.renderer.mesh.rasterize_meshes import pix_to_ndc diff --git a/pytorch3d/structures/meshes.py b/pytorch3d/structures/meshes.py index 0f0b963a..4746cc9d 100644 --- a/pytorch3d/structures/meshes.py +++ b/pytorch3d/structures/meshes.py @@ -1485,7 +1485,6 @@ def join_meshes_as_batch(meshes: List[Meshes], include_textures: bool = True): # Meshes objects can be iterated and produce single Meshes. We avoid # letting join_meshes_as_batch(mesh1, mesh2) silently do the wrong thing. raise ValueError("Wrong first argument to join_meshes_as_batch.") - # pyre-fixme[10]: Name `mesh` is used but not defined. verts = [v for mesh in meshes for v in mesh.verts_list()] faces = [f for mesh in meshes for f in mesh.faces_list()] if len(meshes) == 0 or not include_textures: