From 7c111f737908bf8c5cf01f28324da320a1e28517 Mon Sep 17 00:00:00 2001 From: Pyre Bot Jr <> Date: Mon, 18 Oct 2021 12:17:11 -0700 Subject: [PATCH] suppress errors in `vision/fair/pytorch3d` Differential Revision: D31737477 fbshipit-source-id: 2590548c1b7a65c277ccddd405276c244fde0961 --- pytorch3d/ops/cubify.py | 2 -- pytorch3d/transforms/transform3d.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/pytorch3d/ops/cubify.py b/pytorch3d/ops/cubify.py index b4b46491..e9200c9b 100644 --- a/pytorch3d/ops/cubify.py +++ b/pytorch3d/ops/cubify.py @@ -48,8 +48,6 @@ 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/transforms/transform3d.py b/pytorch3d/transforms/transform3d.py index cab6a5ff..4718780f 100644 --- a/pytorch3d/transforms/transform3d.py +++ b/pytorch3d/transforms/transform3d.py @@ -753,8 +753,6 @@ def _broadcast_bmm(a, b): return a.bmm(b) -# pyre-fixme[56]: Decorator `torch.no_grad(...)` could not be called, because -# its type `no_grad` is not callable. @torch.no_grad() def _check_valid_rotation_matrix(R, tol: float = 1e-7): """