suppress errors in fbcode/vision - batch 2

Differential Revision: D29458533

fbshipit-source-id: d9ef216fdbb677e49371ad91ea5e9355146c1c52
This commit is contained in:
Pyre Bot Jr
2021-06-29 09:48:18 -07:00
committed by Facebook GitHub Bot
parent b8790474f1
commit 14f7fe4a65
7 changed files with 14 additions and 5 deletions

View File

@@ -463,7 +463,6 @@ def round_points_to_volumes(
# valid - binary indicators of votes that fall into the volume
grid_sizes = grid_sizes.type_as(XYZ)
# pyre-fixme[16]: `int` has no attribute `long`.
valid = (
(0 <= X)
* (X < grid_sizes_xyz[:, None, 0:1])

View File

@@ -137,10 +137,14 @@ def sample_points_from_meshes(
# return
# TODO(gkioxari) consider returning a Pointclouds instance [breaking]
if return_normals and return_textures:
# pyre-fixme[61]: `normals` may not be initialized here.
# pyre-fixme[61]: `textures` may not be initialized here.
return samples, normals, textures
if return_normals: # return_textures is False
# pyre-fixme[61]: `normals` may not be initialized here.
return samples, normals
if return_textures: # return_normals is False
# pyre-fixme[61]: `textures` may not be initialized here.
return samples, textures
return samples