Commit 7cb9d8ea authored by generatedunixname89002005307016's avatar generatedunixname89002005307016 Committed by Facebook GitHub Bot
Browse files

suppress errors in `vision` - batch 1

Reviewed By: pradeep90

Differential Revision: D22628883

fbshipit-source-id: a19c271b4025c0e3c61408604a7e0f9fbcbdfa5b
parent 8b70aa1e
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # 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 import _C
from pytorch3d.structures import Meshes, Pointclouds from pytorch3d.structures import Meshes, Pointclouds
from torch.autograd import Function from torch.autograd import Function
......
...@@ -44,6 +44,8 @@ def ravel_index(idx, dims) -> torch.Tensor: ...@@ -44,6 +44,8 @@ def ravel_index(idx, dims) -> torch.Tensor:
return linind return linind
# pyre-fixme[56]: Decorator `torch.no_grad(...)` could not be called, because its
# type `no_grad` is not callable.
@torch.no_grad() @torch.no_grad()
def cubify(voxels, thresh, device=None, align: str = "topleft") -> Meshes: def cubify(voxels, thresh, device=None, align: str = "topleft") -> Meshes:
r""" r"""
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
import torch import torch
import torch.nn as nn import torch.nn as nn
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C from pytorch3d import _C
from torch.autograd import Function from torch.autograd import Function
from torch.autograd.function import once_differentiable from torch.autograd.function import once_differentiable
......
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import torch import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C from pytorch3d import _C
from torch.autograd import Function from torch.autograd import Function
from torch.autograd.function import once_differentiable from torch.autograd.function import once_differentiable
......
...@@ -4,6 +4,8 @@ from collections import namedtuple ...@@ -4,6 +4,8 @@ from collections import namedtuple
from typing import Union from typing import Union
import torch import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C from pytorch3d import _C
from torch.autograd import Function from torch.autograd import Function
from torch.autograd.function import once_differentiable from torch.autograd.function import once_differentiable
......
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import torch import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C from pytorch3d import _C
from torch.autograd import Function from torch.autograd import Function
from torch.autograd.function import once_differentiable from torch.autograd.function import once_differentiable
......
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import torch import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C from pytorch3d import _C
from torch.autograd import Function from torch.autograd import Function
from torch.autograd.function import once_differentiable from torch.autograd.function import once_differentiable
......
...@@ -5,6 +5,8 @@ from typing import NamedTuple, Sequence ...@@ -5,6 +5,8 @@ from typing import NamedTuple, Sequence
import numpy as np import numpy as np
import torch import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C from pytorch3d import _C
......
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import torch import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C from pytorch3d import _C
......
...@@ -5,6 +5,8 @@ from typing import Optional ...@@ -5,6 +5,8 @@ from typing import Optional
import numpy as np import numpy as np
import torch import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C from pytorch3d import _C
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
from typing import Optional from typing import Optional
import torch import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C from pytorch3d import _C
from pytorch3d.renderer.mesh.rasterize_meshes import pix_to_ndc from pytorch3d.renderer.mesh.rasterize_meshes import pix_to_ndc
......
...@@ -1485,7 +1485,6 @@ def join_meshes_as_batch(meshes: List[Meshes], include_textures: bool = True): ...@@ -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 # Meshes objects can be iterated and produce single Meshes. We avoid
# letting join_meshes_as_batch(mesh1, mesh2) silently do the wrong thing. # letting join_meshes_as_batch(mesh1, mesh2) silently do the wrong thing.
raise ValueError("Wrong first argument to join_meshes_as_batch.") 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()] verts = [v for mesh in meshes for v in mesh.verts_list()]
faces = [f for mesh in meshes for f in mesh.faces_list()] faces = [f for mesh in meshes for f in mesh.faces_list()]
if len(meshes) == 0 or not include_textures: if len(meshes) == 0 or not include_textures:
......
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