fixed nccl init

This commit is contained in:
William Falcon
2019-07-12 16:23:20 -04:00
parent 4f5da45fae
commit faa2d4fa8b
+1 -1
View File
@@ -376,7 +376,7 @@ class Trainer(TrainerIO):
:return:
"""
try:
os.environ['MASTER_PORT']
port = os.environ['MASTER_PORT']
except Exception as e:
port = 12910
os.environ['MASTER_PORT'] = f'{port}'