From c8dedbacb2e8664d7e9128019950fded328790e8 Mon Sep 17 00:00:00 2001 From: Geo Jolly <69108486+kingjuno@users.noreply.github.com> Date: Thu, 12 May 2022 15:11:14 +0530 Subject: [PATCH] Rename loops.base to loops.loop --- pl_examples/loop_examples/kfold.py | 2 +- pytorch_lightning/loops/__init__.py | 2 +- pytorch_lightning/loops/batch/training_batch_loop.py | 2 +- pytorch_lightning/loops/dataloader/dataloader_loop.py | 2 +- pytorch_lightning/loops/epoch/evaluation_epoch_loop.py | 2 +- pytorch_lightning/loops/epoch/prediction_epoch_loop.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pl_examples/loop_examples/kfold.py b/pl_examples/loop_examples/kfold.py index 229673ec78df41..a6186d30ea4f90 100644 --- a/pl_examples/loop_examples/kfold.py +++ b/pl_examples/loop_examples/kfold.py @@ -31,7 +31,7 @@ from pl_examples.basic_examples.mnist_examples.image_classifier_4_lightning_module import ImageClassifier from pytorch_lightning import LightningDataModule, seed_everything, Trainer from pytorch_lightning.core.lightning import LightningModule -from pytorch_lightning.loops.base import Loop +from pytorch_lightning.loops.loop import Loop from pytorch_lightning.loops.fit_loop import FitLoop from pytorch_lightning.trainer.states import TrainerFn diff --git a/pytorch_lightning/loops/__init__.py b/pytorch_lightning/loops/__init__.py index 002727274df1ad..dcfcbc81950b52 100644 --- a/pytorch_lightning/loops/__init__.py +++ b/pytorch_lightning/loops/__init__.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from pytorch_lightning.loops.base import Loop # noqa: F401 +from pytorch_lightning.loops.loop import Loop # noqa: F401 from pytorch_lightning.loops.batch import ManualOptimization # noqa: F401 from pytorch_lightning.loops.batch import TrainingBatchLoop # noqa: F401 from pytorch_lightning.loops.dataloader import DataLoaderLoop, EvaluationLoop, PredictionLoop # noqa: F401 diff --git a/pytorch_lightning/loops/batch/training_batch_loop.py b/pytorch_lightning/loops/batch/training_batch_loop.py index 0198e57a21034f..623b235da33e56 100644 --- a/pytorch_lightning/loops/batch/training_batch_loop.py +++ b/pytorch_lightning/loops/batch/training_batch_loop.py @@ -15,7 +15,7 @@ from torch import Tensor -from pytorch_lightning.loops.base import Loop +from pytorch_lightning.loops.loop import Loop from pytorch_lightning.loops.optimization.manual_loop import _OUTPUTS_TYPE as _MANUAL_LOOP_OUTPUTS_TYPE from pytorch_lightning.loops.optimization.manual_loop import ManualOptimization from pytorch_lightning.loops.optimization.optimizer_loop import _OUTPUTS_TYPE as _OPTIMIZER_LOOP_OUTPUTS_TYPE diff --git a/pytorch_lightning/loops/dataloader/dataloader_loop.py b/pytorch_lightning/loops/dataloader/dataloader_loop.py index 7a69158ea643a6..6c83b7fbcbd19c 100644 --- a/pytorch_lightning/loops/dataloader/dataloader_loop.py +++ b/pytorch_lightning/loops/dataloader/dataloader_loop.py @@ -17,7 +17,7 @@ from torch.utils.data import DataLoader -from pytorch_lightning.loops.base import Loop +from pytorch_lightning.loops.loop import Loop from pytorch_lightning.trainer.progress import DataLoaderProgress diff --git a/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py b/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py index f6e49fa310a24f..6e1622a8157089 100644 --- a/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py +++ b/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py @@ -19,7 +19,7 @@ from deprecate import void from torch.utils.data import DataLoader -from pytorch_lightning.loops.base import Loop +from pytorch_lightning.loops.loop import Loop from pytorch_lightning.trainer.progress import BatchProgress from pytorch_lightning.trainer.states import TrainerFn from pytorch_lightning.trainer.supporters import CombinedLoader diff --git a/pytorch_lightning/loops/epoch/prediction_epoch_loop.py b/pytorch_lightning/loops/epoch/prediction_epoch_loop.py index 8833aeddd2780d..8323717618a403 100644 --- a/pytorch_lightning/loops/epoch/prediction_epoch_loop.py +++ b/pytorch_lightning/loops/epoch/prediction_epoch_loop.py @@ -4,7 +4,7 @@ import torch from deprecate import void -from pytorch_lightning.loops.base import Loop +from pytorch_lightning.loops.loop import Loop from pytorch_lightning.overrides.distributed import IndexBatchSamplerWrapper from pytorch_lightning.trainer.progress import Progress from pytorch_lightning.utilities.apply_func import move_data_to_device