mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-28 13:20:31 +08:00
added auto port find
This commit is contained in:
1 parent
b5c67d91e5
commit
9f0d963e37
1 file changed
+1
-1
@@ -403,7 +403,7 @@ class Trainer(TrainerIO):
|
||||
try:
|
||||
port = os.environ['MASTER_PORT']
|
||||
except Exception as e:
|
||||
port = 12910
|
||||
port = 12801
|
||||
os.environ['MASTER_PORT'] = f'{port}'
|
||||
|
||||
# check for pids
|
||||
|
||||
Reference in new issue
Block a user