mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: Fixes https://github.com/pytorch/pytorch/issues/42942 Re-do of https://github.com/pytorch/pytorch/issues/43877. Pull Request resolved: https://github.com/pytorch/pytorch/pull/45732 Reviewed By: mruberry Differential Revision: D24195820 Pulled By: albanD fbshipit-source-id: 8f43353077f341e34371affd76be553c0ef7d98a
12 lines
344 B
Python
12 lines
344 B
Python
from torch import Tensor
|
|
from typing import AnyStr, List
|
|
|
|
class UndefinedGrad:
|
|
def __init__(self) -> None: ...
|
|
def __call__(self, *inputs: Tensor) -> List[Tensor]: ...
|
|
...
|
|
|
|
class DelayedError:
|
|
def __init__(self, msg: AnyStr, num_inputs: int) -> None: ...
|
|
def __call__(self, inputs: List[Tensor]) -> List[Tensor]: ...
|
|
... |