Skip to content

Commit ed7ccca

Browse files
authored
Add missing import statements in lightning_module.rst (#11946)
1 parent 02ccd87 commit ed7ccca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/source/common/lightning_module.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ Here are the only required methods.
9696
.. code-block:: python
9797
9898
import pytorch_lightning as pl
99+
import torch.nn as nn
100+
import torch.nn.functional as F
99101
100102
101103
class LitModel(pl.LightningModule):

0 commit comments

Comments
 (0)