From 45097d004c3a05074f1aec19f42ec93971ab654c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 30 Aug 2021 00:09:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pytorch_lightning/loops/batch/training_batch_loop.py | 2 +- pytorch_lightning/loops/utilities.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pytorch_lightning/loops/batch/training_batch_loop.py b/pytorch_lightning/loops/batch/training_batch_loop.py index 6d95e39cf1230c..bdcd910ffeaa5f 100644 --- a/pytorch_lightning/loops/batch/training_batch_loop.py +++ b/pytorch_lightning/loops/batch/training_batch_loop.py @@ -28,10 +28,10 @@ from pytorch_lightning.loops.base import Loop from pytorch_lightning.loops.closure import Closure, ClosureResult from pytorch_lightning.loops.utilities import ( + _block_parallel_sync_behavior, _check_training_step_output, _process_training_step_output, check_finite_loss, - _block_parallel_sync_behavior, ) from pytorch_lightning.plugins import ParallelPlugin from pytorch_lightning.trainer.progress import OptimizationProgress diff --git a/pytorch_lightning/loops/utilities.py b/pytorch_lightning/loops/utilities.py index 5fdcf83a71cb30..5474fee991a740 100644 --- a/pytorch_lightning/loops/utilities.py +++ b/pytorch_lightning/loops/utilities.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. from contextlib import contextmanager -from typing import Any, Iterator, Mapping, Optional, Tuple, Generator +from typing import Any, Generator, Iterator, Mapping, Optional, Tuple import torch