mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: `TestFunc` is annotated as `Callable[[object], object]` which represents a callable that takes a single argument of any type (`object`) and returns a value of any type (`object`). However, in reality, `TestFunc` could be any number of arguments, as a result, the corret typing should be `Callable[[...], object]` instead which represents a callable that takes any number of arguments (including zero) and returns a value of any type (`object`). Test Plan: Contbuild & OSS CI Differential Revision: D66463705 Pull Request resolved: https://github.com/pytorch/pytorch/pull/141513 Approved by: https://github.com/wz337, https://github.com/Skylion007 |
||
|---|---|---|
| .. | ||
| _shard | ||
| _tensor | ||
| nn | ||
| rpc | ||
| __init__.py | ||
| checkpoint_utils.py | ||
| common_state_dict.py | ||
| ddp_under_dist_autograd_test.py | ||
| distributed_test.py | ||
| distributed_utils.py | ||
| fake_pg.py | ||
| multi_threaded_pg.py | ||
| rpc_utils.py | ||