Skip to content

Commit fcdadcc

Browse files
committed
pep8
1 parent 559f769 commit fcdadcc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pytorch_lightning/trainer/training_loop.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ def training_step(self, batch, batch_idx):
144144
import atexit
145145
import signal
146146
from abc import ABC, abstractmethod
147-
from functools import partial
148147
from typing import Callable
149148
from typing import Union, List
150149

@@ -307,6 +306,7 @@ def train(self):
307306
# add signal handlers for process kills
308307
def _signal_kill_handler(*args):
309308
return TrainerTrainLoopMixin.run_training_teardown(self)
309+
310310
orig_signal_handlers = {}
311311
for sig_name in SIGNAL_TERMINATE:
312312
orig_signal_handlers[sig_name] = signal.signal(getattr(signal, sig_name),
@@ -826,4 +826,3 @@ def _with_is_last(iterable):
826826
last = val
827827
# yield last, no longer has next
828828
yield last, True
829-

0 commit comments

Comments
 (0)