From 7ab1a837a97b89dc030572c9501e38e37d3a4f97 Mon Sep 17 00:00:00 2001 From: William Falcon Date: Mon, 8 Jul 2019 20:11:20 -0400 Subject: [PATCH] adjusted imports --- pytorch_lightning/models/trainer.py | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/pytorch_lightning/models/trainer.py b/pytorch_lightning/models/trainer.py index aa4c52d411..5dedea544e 100644 --- a/pytorch_lightning/models/trainer.py +++ b/pytorch_lightning/models/trainer.py @@ -1,19 +1,20 @@ -import torch -import tqdm -import numpy as np -from pytorch_lightning.root_module.memory import get_gpu_memory_map +from time import sleep +import subprocess import traceback -from pytorch_lightning.root_module.model_saving import TrainerIO +import warnings +import os + +import torch +from torch.utils.data.distributed import DistributedSampler from torch.optim.lr_scheduler import MultiStepLR -from pytorch_lightning.pt_overrides.override_data_parallel import LightningDistributedDataParallel -import pdb import torch.multiprocessing as mp import torch.distributed as dist -import os -import subprocess -from time import sleep -from torch.utils.data.distributed import DistributedSampler -import warnings +import numpy as np +import tqdm + +from pytorch_lightning.root_module.memory import get_gpu_memory_map +from pytorch_lightning.root_module.model_saving import TrainerIO +from pytorch_lightning.pt_overrides.override_data_parallel import LightningDistributedDataParallel try: