suppress errors in vision/fair/pytorch3d

Differential Revision: D31496551

fbshipit-source-id: 705fd88f319875db3f7938a2946c48a51ea225f5
This commit is contained in:
Pyre Bot Jr
2021-10-07 21:56:41 -07:00
committed by Facebook GitHub Bot
parent 6dfa326922
commit 6d36c1e2b0
10 changed files with 3 additions and 12 deletions

View File

@@ -52,7 +52,6 @@ def list_to_padded(
# replace empty 1D tensors with empty tensors with a correct number of dimensions
x = [
# pyre-fixme[16]: `Tensor` has no attribute `new_zeros`.
(y.new_zeros([0] * element_ndim) if (y.ndim == 1 and y.nelement() == 0) else y)
for y in x
]