Skip to content

Commit 5878332

Browse files
committed
Update imports
1 parent 58f0ea6 commit 5878332

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source-pytorch/common/tbptt.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ hidden states should be kept in-between each time-dimension split.
1616
import torch.nn.functional as F
1717
import torch.optim as optim
1818
from torch.utils.data import Dataset, DataLoader
19-
import pytorch_lightning as pl
20-
from pytorch_lightning import LightningModule
19+
20+
import lightning as L
2121
2222
2323
class AverageDataset(Dataset):
@@ -35,7 +35,7 @@ hidden states should be kept in-between each time-dimension split.
3535
return self.input_seq[item], self.output_seq[item]
3636
3737
38-
class LitModel(LightningModule):
38+
class LitModel(L.LightningModule):
3939
4040
def __init__(self):
4141
super().__init__()
@@ -98,5 +98,5 @@ hidden states should be kept in-between each time-dimension split.
9898
9999
if __name__ == "__main__":
100100
model = LitModel()
101-
trainer = pl.Trainer(max_epochs=5)
101+
trainer = L.Trainer(max_epochs=5)
102102
trainer.fit(model)

0 commit comments

Comments
 (0)