mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-10 12:21:57 +08:00
easy import for lightningModule
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user