From 1e57a75ff9765d6e494868e22d34c9dfe85553c9 Mon Sep 17 00:00:00 2001 From: William Falcon Date: Mon, 8 Jul 2019 09:32:57 -0400 Subject: [PATCH] easy import for lightningModule --- pytorch_lightning/models/trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch_lightning/models/trainer.py b/pytorch_lightning/models/trainer.py index 30713b6c..942107d6 100644 --- a/pytorch_lightning/models/trainer.py +++ b/pytorch_lightning/models/trainer.py @@ -346,7 +346,7 @@ class Trainer(TrainerIO): for i in range(0, 120): sleep(1.0) if os.path.exists(ip_file): - ip = open(file=ip_file, mode='r') + ip = list(open(file=ip_file, mode='r'))[0] return ip def __run_pretrain_routine(self, model):