Skip to content

Commit 5bb6b41

Browse files
dataloaders with fast_dev_run (Lightning-AI#1787)
* dataloaders with fast_dev_run * dataloaders with fast_dev_run * dataloaders with fast_dev_run * fix * pep 8
1 parent 9d2df24 commit 5bb6b41

File tree

20 files changed

+56
-34
lines changed

20 files changed

+56
-34
lines changed

pl_examples/domain_templates/generative_adversarial_net.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def on_epoch_end(self):
173173
# log sampled images
174174
sample_imgs = self(z)
175175
grid = torchvision.utils.make_grid(sample_imgs)
176-
self.logger.experiment.add_image(f'generated_images', grid, self.current_epoch)
176+
self.logger.experiment.add_image('generated_images', grid, self.current_epoch)
177177

178178

179179
def main(hparams):

pytorch_lightning/core/model_saving.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"""
55

66
from pytorch_lightning.utilities import rank_zero_warn
7+
from pytorch_lightning.core.saving import * # noqa: F403
78

89
rank_zero_warn("`model_saving` module has been renamed to `saving` since v0.6.0."
910
" The deprecated module name will be removed in v0.8.0.", DeprecationWarning)
10-
11-
from pytorch_lightning.core.saving import * # noqa: F403

pytorch_lightning/core/root_module.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"""
55

66
from pytorch_lightning.utilities import rank_zero_warn
7+
from pytorch_lightning.core.lightning import * # noqa: F403
78

89
rank_zero_warn("`root_module` module has been renamed to `lightning` since v0.6.0."
910
" The deprecated module name will be removed in v0.8.0.", DeprecationWarning)
10-
11-
from pytorch_lightning.core.lightning import * # noqa: F403

pytorch_lightning/logging/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"""
55

66
from pytorch_lightning.utilities import rank_zero_warn
7+
from pytorch_lightning.loggers import * # noqa: F403
78

89
rank_zero_warn("`logging` package has been renamed to `loggers` since v0.7.0"
910
" The deprecated package name will be removed in v0.9.0.", DeprecationWarning)
10-
11-
from pytorch_lightning.loggers import * # noqa: F403

pytorch_lightning/logging/comet.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"""
44

55
from pytorch_lightning.utilities import rank_zero_warn
6+
from pytorch_lightning.loggers.comet import CometLogger # noqa: F403
67

78
rank_zero_warn("`logging.comet` module has been renamed to `loggers.comet` since v0.7.0."
89
" The deprecated module name will be removed in v0.9.0.", DeprecationWarning)
9-
10-
from pytorch_lightning.loggers.comet import CometLogger # noqa: F403

pytorch_lightning/logging/mlflow.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"""
44

55
from pytorch_lightning.utilities import rank_zero_warn
6+
from pytorch_lightning.loggers.mlflow import MLFlowLogger # noqa: F403
67

78
rank_zero_warn("`logging.mlflow` module has been renamed to `loggers.mlflow` since v0.7.0."
89
" The deprecated module name will be removed in v0.9.0.", DeprecationWarning)
9-
10-
from pytorch_lightning.loggers.mlflow import MLFlowLogger # noqa: F403

pytorch_lightning/logging/neptune.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"""
44

55
from pytorch_lightning.utilities import rank_zero_warn
6+
from pytorch_lightning.loggers.neptune import NeptuneLogger # noqa: F403
67

78
rank_zero_warn("`logging.neptune` module has been renamed to `loggers.neptune` since v0.7.0."
89
" The deprecated module name will be removed in v0.9.0.", DeprecationWarning)
9-
10-
from pytorch_lightning.loggers.neptune import NeptuneLogger # noqa: F403

pytorch_lightning/logging/test_tube.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"""
44

55
from pytorch_lightning.utilities import rank_zero_warn
6+
from pytorch_lightning.loggers.test_tube import TestTubeLogger # noqa: F403
67

78
rank_zero_warn("`logging.test_tube` module has been renamed to `loggers.test_tube` since v0.7.0."
89
" The deprecated module name will be removed in v0.9.0.", DeprecationWarning)
9-
10-
from pytorch_lightning.loggers.test_tube import TestTubeLogger # noqa: F403

pytorch_lightning/logging/wandb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"""
44

55
from pytorch_lightning.utilities import rank_zero_warn
6+
from pytorch_lightning.loggers.wandb import WandbLogger # noqa: F403
67

78
rank_zero_warn("`logging.wandb` module has been renamed to `loggers.wandb` since v0.7.0."
89
" The deprecated module name will be removed in v0.9.0.", DeprecationWarning)
9-
10-
from pytorch_lightning.loggers.wandb import WandbLogger # noqa: F403

pytorch_lightning/pt_overrides/override_data_parallel.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
"""
55

66
from pytorch_lightning.utilities import rank_zero_warn
7+
from pytorch_lightning.overrides.data_parallel import ( # noqa: F402
8+
get_a_var, parallel_apply, LightningDataParallel, LightningDistributedDataParallel)
79

810
rank_zero_warn("`override_data_parallel` module has been renamed to `data_parallel` since v0.6.0."
911
" The deprecated module name will be removed in v0.8.0.", DeprecationWarning)
10-
11-
from pytorch_lightning.overrides.data_parallel import ( # noqa: F402
12-
get_a_var, parallel_apply, LightningDataParallel, LightningDistributedDataParallel)

0 commit comments

Comments
 (0)