mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Used [rst2myst tool](https://rst-to-myst.readthedocs.io/en/latest/) Fixes #155022 Docs comparison (check out the 'new' whenever docs build) 1. func.ux_limitations ([old](https://docs.pytorch.org/docs/main/func.ux_limitations.html) vs. [new](https://docs-preview.pytorch.org/pytorch/pytorch/155540/func.ux_limitations.html)) 2. func.whirlwind_tour ([old](https://docs.pytorch.org/docs/main/func.whirlwind_tour.html) vs. [new](https://docs-preview.pytorch.org/pytorch/pytorch/155540/func.whirlwind_tour.html)) 3. future_mod ([old](https://docs.pytorch.org/docs/main/future_mod.html) vs. [new](https://docs-preview.pytorch.org/pytorch/pytorch/155540/future_mod.html)) 4. futures ([old](https://docs.pytorch.org/docs/main/futures.html) vs. [new](https://docs-preview.pytorch.org/pytorch/pytorch/155540/futures.html)) 5. fx.experimental ([old](https://docs.pytorch.org/docs/main/fx.experimental.html) vs. [new](https://docs-preview.pytorch.org/pytorch/pytorch/155540/fx.experimental.html)) Pull Request resolved: https://github.com/pytorch/pytorch/pull/155540 Approved by: https://github.com/AlannaBurke, https://github.com/svekars
31 lines
606 B
Markdown
31 lines
606 B
Markdown
```{eval-rst}
|
|
.. currentmodule:: torch.futures
|
|
```
|
|
|
|
(futures-docs)=
|
|
|
|
# torch.futures
|
|
|
|
This package provides a {class}`~torch.futures.Future` type that encapsulates
|
|
an asynchronous execution and a set of utility functions to simplify operations
|
|
on {class}`~torch.futures.Future` objects. Currently, the
|
|
{class}`~torch.futures.Future` type is primarily used by the
|
|
{ref}`distributed-rpc-framework`.
|
|
|
|
```{eval-rst}
|
|
.. automodule:: torch.futures
|
|
```
|
|
|
|
```{eval-rst}
|
|
.. autoclass:: Future
|
|
:inherited-members:
|
|
```
|
|
|
|
```{eval-rst}
|
|
.. autofunction:: collect_all
|
|
```
|
|
|
|
```{eval-rst}
|
|
.. autofunction:: wait_all
|
|
```
|