added auto port find

This commit is contained in:
William Falcon committed 2019-07-24 15:08:59 -04:00
1 parent b5c67d91e5
commit 9f0d963e37
1 file changed
+1 -1
+1 -1
View File
@@ -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