mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 14:50:36 +08:00
suppress errors in vision - batch 1
Summary: This diff is auto-generated to upgrade the Pyre version and suppress errors in vision. The upgrade will affect Pyre local configurations in the following directories: ``` vision/ale/search vision/fair/fvcore vision/fair/pytorch3d vision/ocr/rosetta_hash vision/vogue/personalization ``` Differential Revision: D21688454 fbshipit-source-id: 1f3c3fee42b6da2e162fd0932742ab8c5c96aa45
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d689baac5e
commit
ae68a54f67
@@ -41,6 +41,7 @@ def _handle_pointcloud_input(
|
||||
lengths = points.num_points_per_cloud()
|
||||
normals = points.normals_padded() # either a tensor or None
|
||||
elif torch.is_tensor(points):
|
||||
# pyre-fixme[16]: `Tensor` has no attribute `ndim`.
|
||||
if points.ndim != 3:
|
||||
raise ValueError("Expected points to be of shape (N, P, D)")
|
||||
X = points
|
||||
@@ -173,6 +174,7 @@ def chamfer_distance(
|
||||
)
|
||||
|
||||
if is_x_heterogeneous:
|
||||
# pyre-fixme[16]: `int` has no attribute `__setitem__`.
|
||||
cham_norm_x[x_mask] = 0.0
|
||||
if is_y_heterogeneous:
|
||||
cham_norm_y[y_mask] = 0.0
|
||||
|
||||
@@ -65,6 +65,7 @@ class _PointFaceDistance(Function):
|
||||
return grad_points, None, grad_tris, None, None
|
||||
|
||||
|
||||
# pyre-fixme[16]: `_PointFaceDistance` has no attribute `apply`.
|
||||
point_face_distance = _PointFaceDistance.apply
|
||||
|
||||
|
||||
@@ -115,6 +116,7 @@ class _FacePointDistance(Function):
|
||||
return grad_points, None, grad_tris, None, None
|
||||
|
||||
|
||||
# pyre-fixme[16]: `_FacePointDistance` has no attribute `apply`.
|
||||
face_point_distance = _FacePointDistance.apply
|
||||
|
||||
|
||||
@@ -165,6 +167,7 @@ class _PointEdgeDistance(Function):
|
||||
return grad_points, None, grad_segms, None, None
|
||||
|
||||
|
||||
# pyre-fixme[16]: `_PointEdgeDistance` has no attribute `apply`.
|
||||
point_edge_distance = _PointEdgeDistance.apply
|
||||
|
||||
|
||||
@@ -215,6 +218,7 @@ class _EdgePointDistance(Function):
|
||||
return grad_points, None, grad_segms, None, None
|
||||
|
||||
|
||||
# pyre-fixme[16]: `_EdgePointDistance` has no attribute `apply`.
|
||||
edge_point_distance = _EdgePointDistance.apply
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user