File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
docs/source-pytorch/common Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments