Minor doc fixes (#2893)

* Minor language fixes

* Typo fix
This commit is contained in:
ananda seelan 2020-08-09 19:00:08 +00:00 committed by GitHub
parent 6c18fd9a24
commit 4d3dfd43e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ register the tensor as a buffer in your modules's `__init__` method with :meth:`
Remove samplers
^^^^^^^^^^^^^^^
In PyTorch, you must use `torch.nn.DistributedSampler` for multi-node or TPU training in PyTorch. The
In PyTorch, you must use `torch.nn.DistributedSampler` for multi-node or TPU training. The
sampler makes sure each GPU sees the appropriate part of your data.
.. testcode::

View File

@ -1670,7 +1670,7 @@ class LightningModule(ABC, DeviceDtypeModuleMixin, GradInformation, ModelIO, Mod
>>> class ManuallyArgsModel(LightningModule):
... def __init__(self, arg1, arg2, arg3):
... super().__init__()
... # manually assine arguments
... # manually assign arguments
... self.save_hyperparameters('arg1', 'arg3')
... def forward(self, *args, **kwargs):
... ...