mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
fixed nccl init
This commit is contained in:
@@ -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