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:
@@ -332,8 +332,6 @@ class Trainer(TrainerIO):
|
||||
print(ip_file_dir)
|
||||
ip_file = os.path.join(ip_file_dir, '.ip_meta')
|
||||
if proc_rank == 0:
|
||||
os.makedirs(ip_file, exist_ok=True)
|
||||
|
||||
# get the proc 0 IP
|
||||
root_ip = subprocess.run(['hostname', '-I'], stdout=subprocess.PIPE).stdout.decode('utf-8')
|
||||
root_ip = root_ip.split(' ')[0]
|
||||
|
||||
Reference in New Issue
Block a user