mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 03:42:50 +08:00
suppress errors in vision/fair/pytorch3d
Differential Revision: D32310496 fbshipit-source-id: fa1809bbe0b999baee6d07fad3890dc8c2a2157b
This commit is contained in:
parent
cac6cb1b78
commit
1836c786fe
@ -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]
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user