mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-22 07:10:34 +08:00
suppress errors in vision/fair/pytorch3d
Differential Revision: D31496551 fbshipit-source-id: 705fd88f319875db3f7938a2946c48a51ea225f5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
6dfa326922
commit
6d36c1e2b0
@@ -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
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user