Fix "Get Started" at the top being 404 (#12210)

This commit is contained in:
Aki Nitta 2022-03-06 08:24:15 +09:00 committed by GitHub
parent a690fb5167
commit ce956af4f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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',

View File

@ -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::