Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed broken link to torch.nn.DataParallel #1063

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions beginner_source/former_torchies/parallelism_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
multiple smaller mini-batches and run the computation for each of the
smaller mini-batches in parallel.

Data Parallelism is implemented using ``torch.nn.DataParallel``.
Data Parallelism is implemented using |torch.nn.DataParallel|_.
One can wrap a Module in ``DataParallel`` and it will be parallelized
over multiple GPUs in the batch dimension.

.. |torch.nn.DataParallel| replace:: ``torch.nn.DataParallel``
.. _torch.nn.DataParallel: https://pytorch.org/docs/nn.html#torch.nn.DataParallel

DataParallel
-------------
Expand Down Expand Up @@ -41,7 +43,7 @@ def forward(self, x):
# The code does not need to be changed in CPU-mode.
#
# The documentation for DataParallel can be found
# `here <https://pytorch.org/docs/nn.html#dataparallel>`_.
# `here <https://pytorch.org/docs/nn.html#torch.nn.DataParallel>`_.
#
# **Attributes of the wrapped module**
#
Expand Down