mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-27 13:12:20 +08:00
fixed nccl init
This commit is contained in:
1 parent
3239c9fdf8
commit
f3ca184fb6
1 file changed
+1
-1
@@ -380,7 +380,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}'
|
||||
|
||||
Reference in new issue
Block a user