File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
src/pytorch_lightning/trainer Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
import torch
2
- from pytorch_lightning import LightningModule , Trainer , LightningDataModule
2
+
3
+ from pytorch_lightning import LightningDataModule , LightningModule , Trainer
3
4
4
5
5
6
class BoringData (LightningDataModule ):
6
7
pass
7
8
9
+
8
10
class BoringModel (LightningModule ):
9
11
def __init__ (self ):
10
12
super ().__init__ ()
Original file line number Diff line number Diff line change 77
77
XLAProfiler ,
78
78
)
79
79
from pytorch_lightning .strategies import ParallelStrategy , Strategy
80
- from pytorch_lightning .trainer .configuration_validator import verify_loop_configurations , _check_dataloader_none , \
81
- _check_datamodule_none
80
+ from pytorch_lightning .trainer .configuration_validator import (
81
+ _check_dataloader_none ,
82
+ _check_datamodule_none ,
83
+ verify_loop_configurations ,
84
+ )
82
85
from pytorch_lightning .trainer .connectors .accelerator_connector import _LITERAL_WARN , AcceleratorConnector
83
86
from pytorch_lightning .trainer .connectors .callback_connector import CallbackConnector
84
87
from pytorch_lightning .trainer .connectors .checkpoint_connector import CheckpointConnector
You can’t perform that action at this time.
0 commit comments