suppress errors in vision/fair/pytorch3d

Differential Revision: D35455033

fbshipit-source-id: c4fe9577edd7beb9c40be1cb387f125d53a6a577
This commit is contained in:
Pyre Bot Jr 2022-04-06 18:53:08 -07:00 committed by Facebook GitHub Bot
parent 722646863c
commit 3809b6094c

View File

@ -144,8 +144,7 @@ class ResNetFeatureExtractor(Configurable, torch.nn.Module):
def get_feat_dims(self, size_dict: bool = False): def get_feat_dims(self, size_dict: bool = False):
if size_dict: if size_dict:
return copy.deepcopy(self._feat_dim) return copy.deepcopy(self._feat_dim)
# pyre-fixme[16]: Item `Tensor` of `Union[Tensor, Module]` has no attribute # pyre-fixme[29]: `Union[BoundMethod[typing.Callable(torch.Tensor.values)[[Na...
# `values`.
return sum(self._feat_dim.values()) return sum(self._feat_dim.values())
def forward( def forward(