pytorch/torch/distributed
mrshenli 2ed3ad2891
fix autodoc for torch.distributed.launch (#40963) (#41089)
Summary:
The doc for `torch.distributed.launch` is missing since v1.2.0 (see issue https://github.com/pytorch/pytorch/issues/36386) because PR https://github.com/pytorch/pytorch/issues/22501 added some imports at the first line.
542ac74987/torch/distributed/launch.py (L1-L5)
I move it below the docstring to make the autodoc in Sphinx work normally.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/40963

Differential Revision: D22380816

Pulled By: mrshenli

fbshipit-source-id: ee8406785b9a198bbf3fc65e589854379179496f

Co-authored-by: Xin Yao <yaox12@outlook.com>
2020-07-07 14:23:31 -07:00
..
autograd Remove (most) Python 2 support from Python code (#35615) 2020-04-22 09:23:14 -07:00
nn [caffe2/torch] Use logger in jit instantiator 2020-06-19 07:49:15 -07:00
optim Fix example block format in Distributed Optimizer API doc (#34919) 2020-03-17 17:44:09 -07:00
rpc Add examples and tests for combining static/class method with async execution (#40619) (#40688) 2020-06-29 19:34:23 -07:00
__init__.py Expose torch.distributed.is_available() API (#37021) 2020-04-21 18:38:46 -07:00
constants.py Back out "Revert D19871946: [distributed] pass in timeout to TCP store when initializing" (#33434) 2020-02-19 17:17:17 -08:00
distributed_c10d.py [doc] [distributed] fix typo (#39264) 2020-06-01 19:19:46 -07:00
launch.py fix autodoc for torch.distributed.launch (#40963) (#41089) 2020-07-07 14:23:31 -07:00
rendezvous.py Back out "Revert D19871946: [distributed] pass in timeout to TCP store when initializing" (#33434) 2020-02-19 17:17:17 -08:00