suppress errors in vision/fair/pytorch3d

Differential Revision: D32310496

fbshipit-source-id: fa1809bbe0b999baee6d07fad3890dc8c2a2157b
This commit is contained in:
Pyre Bot Jr 2021-11-10 02:50:29 -08:00 committed by Facebook GitHub Bot
parent cac6cb1b78
commit 1836c786fe
2 changed files with 2 additions and 2 deletions

View File

@ -493,7 +493,7 @@ class Meshes:
# NOTE consider converting index to cpu for efficiency
if index.dtype == torch.bool:
# advanced indexing on a single dimension
index = index.nonzero() # pyre-ignore
index = index.nonzero()
index = index.squeeze(1) if index.numel() > 0 else index
index = index.tolist()
verts = [self.verts_list()[i] for i in index]

View File

@ -351,7 +351,7 @@ class Pointclouds:
# NOTE consider converting index to cpu for efficiency
if index.dtype == torch.bool:
# advanced indexing on a single dimension
index = index.nonzero() # pyre-ignore
index = index.nonzero()
index = index.squeeze(1) if index.numel() > 0 else index
index = index.tolist()
points = [self.points_list()[i] for i in index]