From fc58acb2d4692cf354e620db0c75c2fafbffa230 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005307016 Date: Thu, 24 Dec 2020 11:21:54 -0800 Subject: [PATCH] suppress errors in `vision/fair/pytorch3d` Differential Revision: D25702902 fbshipit-source-id: f0d6708ba917df85b575dfc5525c902b2cab7ea0 --- pytorch3d/io/ply_io.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pytorch3d/io/ply_io.py b/pytorch3d/io/ply_io.py index 5a1b2baa..f96ca3ef 100644 --- a/pytorch3d/io/ply_io.py +++ b/pytorch3d/io/ply_io.py @@ -679,6 +679,7 @@ def load_ply(f, path_manager: Optional[PathManager] = None): # but we don't need to enforce this. if not len(face): + # pyre-fixme[28]: Unexpected keyword argument `size`. faces = torch.zeros(size=(0, 3), dtype=torch.int64) elif isinstance(face, np.ndarray) and face.ndim == 2: # Homogeneous elements if face.shape[1] < 3: @@ -694,6 +695,7 @@ def load_ply(f, path_manager: Optional[PathManager] = None): raise ValueError("Faces must have at least 3 vertices.") for i in range(face_item.shape[0] - 2): face_list.append([face_item[0], face_item[i + 1], face_item[i + 2]]) + # pyre-fixme[6]: Expected `dtype` for 3rd param but got `Type[torch.int64]`. faces = _make_tensor(face_list, cols=3, dtype=torch.int64) _check_faces_indices(faces, max_index=verts.shape[0])