mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 11:52:50 +08:00
suppress errors in vision
- batch 1
Differential Revision: D25497975 fbshipit-source-id: 9f7aa8d1dd31fa62a428321394d8c97b2d9d937d
This commit is contained in:
parent
d6412c94dc
commit
1b82388ab8
@ -201,6 +201,8 @@ def load_obj(
|
|||||||
None.
|
None.
|
||||||
"""
|
"""
|
||||||
data_dir = "./"
|
data_dir = "./"
|
||||||
|
# pyre-fixme[6]: Expected `Union[typing.Type[typing.Any],
|
||||||
|
# typing.Tuple[typing.Type[typing.Any], ...]]` for 2nd param but got `Any`.
|
||||||
if isinstance(f, (str, bytes, os.PathLike)):
|
if isinstance(f, (str, bytes, os.PathLike)):
|
||||||
# pyre-fixme[6]: Expected `_PathLike[Variable[typing.AnyStr <: [str,
|
# pyre-fixme[6]: Expected `_PathLike[Variable[typing.AnyStr <: [str,
|
||||||
# bytes]]]` for 1st param but got `Union[_PathLike[typing.Any], bytes, str]`.
|
# bytes]]]` for 1st param but got `Union[_PathLike[typing.Any], bytes, str]`.
|
||||||
|
@ -20,6 +20,8 @@ class _knn_points(Function):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
# pyre-fixme[14]: `forward` overrides method defined in `Function` inconsistently.
|
||||||
|
# pyre-fixme[14]: `forward` overrides method defined in `Function` inconsistently.
|
||||||
def forward(
|
def forward(
|
||||||
ctx, p1, p2, lengths1, lengths2, K, version, return_sorted: bool = True
|
ctx, p1, p2, lengths1, lengths2, K, version, return_sorted: bool = True
|
||||||
):
|
):
|
||||||
|
@ -212,6 +212,8 @@ class _RasterizeFaceVerts(torch.autograd.Function):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
# pyre-fixme[14]: `forward` overrides method defined in `Function` inconsistently.
|
||||||
|
# pyre-fixme[14]: `forward` overrides method defined in `Function` inconsistently.
|
||||||
def forward(
|
def forward(
|
||||||
ctx,
|
ctx,
|
||||||
face_verts,
|
face_verts,
|
||||||
|
@ -85,6 +85,8 @@ class _Render(torch.autograd.Function):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
# pyre-fixme[14]: `forward` overrides method defined in `Function` inconsistently.
|
||||||
|
# pyre-fixme[14]: `forward` overrides method defined in `Function` inconsistently.
|
||||||
def forward(
|
def forward(
|
||||||
ctx,
|
ctx,
|
||||||
vert_pos,
|
vert_pos,
|
||||||
|
@ -166,6 +166,8 @@ def _format_radius(
|
|||||||
|
|
||||||
class _RasterizePoints(torch.autograd.Function):
|
class _RasterizePoints(torch.autograd.Function):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
# pyre-fixme[14]: `forward` overrides method defined in `Function` inconsistently.
|
||||||
|
# pyre-fixme[14]: `forward` overrides method defined in `Function` inconsistently.
|
||||||
def forward(
|
def forward(
|
||||||
ctx,
|
ctx,
|
||||||
points, # (P, 3)
|
points, # (P, 3)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user