Fix "Get Started" at the top being 404 (#12210)
This commit is contained in:
parent
a690fb5167
commit
ce956af4f2
|
@ -9,7 +9,7 @@
|
|||
'tutorials': 'https://pytorch-lightning.readthedocs.io/en/latest/#tutorials',
|
||||
'previous_pytorch_versions': 'https://pytorch-lightning.rtfd.io/en/latest/',
|
||||
'home': 'https://pytorch-lightning.rtfd.io/en/latest/',
|
||||
'get_started': 'https://pytorch-lightning.readthedocs.io/en/latest/starter/introduction_guide.html',
|
||||
'get_started': 'https://pytorch-lightning.readthedocs.io/en/latest/starter/introduction.html',
|
||||
'features': 'https://pytorch-lightning.rtfd.io/en/latest/',
|
||||
'blog': 'https://www.pytorchlightning.ai/blog',
|
||||
'resources': 'https://pytorch-lightning.readthedocs.io/en/latest/#community-examples',
|
||||
|
|
|
@ -193,9 +193,9 @@ and all the :class:`~torch.nn.Module` instances initialized inside ``LightningMo
|
|||
super().__init__()
|
||||
self.register_buffer("running_mean", torch.zeros(num_features))
|
||||
|
||||
If you still need to access the current device, you can use ``self.device`` anywhere in ``LightningModule`` except ``__init__`` method. You are initializing a
|
||||
:class:`~torch.Tensor` within ``LightningModule.__init__`` method and want it to be moved to the device automatically you must :meth:`~torch.nn.Module.register_buffer`
|
||||
to register it as a parameter.
|
||||
If you still need to access the current device, you can use ``self.device`` anywhere in ``LightningModule`` except ``__init__`` and ``setup`` methods.
|
||||
You are initializing a :class:`~torch.Tensor` within ``LightningModule.__init__`` method and want it to be moved to the device automatically you must
|
||||
:meth:`~torch.nn.Module.register_buffer` to register it as a parameter.
|
||||
|
||||
.. testcode::
|
||||
|
||||
|
|
Loading…
Reference in New Issue