diff options
author | Richard Zou <zou3519@users.noreply.github.com> | 2018-02-15 17:02:26 -0500 |
---|---|---|
committer | Adam Paszke <adam.paszke@gmail.com> | 2018-02-15 23:02:26 +0100 |
commit | cac3026b35b1499a31e4e12d0873a6db33f15bb9 (patch) | |
tree | ce13abec49002119950b945361fd1f225603e884 /torch | |
parent | cb2fd39fdddcc42865e881fe566dae6548ac47b9 (diff) | |
download | pytorch-cac3026b35b1499a31e4e12d0873a6db33f15bb9.tar.gz pytorch-cac3026b35b1499a31e4e12d0873a6db33f15bb9.tar.bz2 pytorch-cac3026b35b1499a31e4e12d0873a6db33f15bb9.zip |
Fix typo in DataParallel docs (#5268)
Diffstat (limited to 'torch')
-rw-r--r-- | torch/nn/parallel/data_parallel.py | 2 | ||||
-rw-r--r-- | torch/nn/parallel/distributed.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/torch/nn/parallel/data_parallel.py b/torch/nn/parallel/data_parallel.py index 2f43d49ea2..817015cb87 100644 --- a/torch/nn/parallel/data_parallel.py +++ b/torch/nn/parallel/data_parallel.py @@ -27,7 +27,7 @@ class DataParallel(Module): the model's forward pass. .. warning:: - Forward and backwrad hooks defined on :attr:`module` and its submodules + Forward and backward hooks defined on :attr:`module` and its submodules won't be invoked anymore, unless the hooks are initialized in the :meth:`forward` method. diff --git a/torch/nn/parallel/distributed.py b/torch/nn/parallel/distributed.py index 3fb1ffffcf..b57c086615 100644 --- a/torch/nn/parallel/distributed.py +++ b/torch/nn/parallel/distributed.py @@ -81,7 +81,7 @@ class DistributedDataParallel(Module): 0, to all other replicas in the system in every iteration. .. warning:: - Forward and backwrad hooks defined on :attr:`module` and its submodules + Forward and backward hooks defined on :attr:`module` and its submodules won't be invoked anymore, unless the hooks are initialized in the :meth:`forward` method. |