Add pyre typeshed information for Tensor.ndim and nn.ConvTranspose2d

Summary: Adding some appropriate methods into pyre typeshed. Removing corresponding pyre-ignore and pyre-fixme messages.

Differential Revision: D22949138

fbshipit-source-id: add8acdd4611ab698954868832594d062cd58f88
This commit is contained in:
Adly Templeton
2020-09-02 06:51:15 -07:00
committed by Facebook GitHub Bot
parent 701bbef4f3
commit 14f015d8bf
4 changed files with 1 additions and 10 deletions

View File

@@ -41,7 +41,6 @@ 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