suppress errors in vision/fair/pytorch3d

Differential Revision: D30479084

fbshipit-source-id: 6b22dd0afe4dfb1be6249e43a56657519f11dcf1
This commit is contained in:
Pyre Bot Jr
2021-08-22 23:38:17 -07:00
committed by Facebook GitHub Bot
parent 1ea2b7272a
commit fadec970c9
7 changed files with 41 additions and 6 deletions

View File

@@ -142,6 +142,7 @@ class Transform3d:
def __init__(
self,
# pyre-fixme[9]: dtype has type `dtype`; used as `Type[torch.float32]`.
dtype: torch.dtype = torch.float32,
device: Device = "cpu",
matrix: Optional[torch.Tensor] = None,
@@ -461,6 +462,7 @@ class Translate(Transform3d):
x,
y=None,
z=None,
# pyre-fixme[9]: dtype has type `dtype`; used as `Type[torch.float32]`.
dtype: torch.dtype = torch.float32,
device: Optional[Device] = None,
) -> None:
@@ -502,6 +504,7 @@ class Scale(Transform3d):
x,
y=None,
z=None,
# pyre-fixme[9]: dtype has type `dtype`; used as `Type[torch.float32]`.
dtype: torch.dtype = torch.float32,
device: Optional[Device] = None,
) -> None:
@@ -547,6 +550,7 @@ class Rotate(Transform3d):
def __init__(
self,
R: torch.Tensor,
# pyre-fixme[9]: dtype has type `dtype`; used as `Type[torch.float32]`.
dtype: torch.dtype = torch.float32,
device: Optional[Device] = None,
orthogonal_tol: float = 1e-5,
@@ -588,6 +592,7 @@ class RotateAxisAngle(Rotate):
angle,
axis: str = "X",
degrees: bool = True,
# pyre-fixme[9]: dtype has type `dtype`; used as `Type[torch.float64]`.
dtype: torch.dtype = torch.float64,
device: Optional[Device] = None,
) -> None: