Update utils.py

This commit is contained in:
shuyingsunshine21 2021-03-24 01:43:04 -07:00 committed by GitHub
parent ea74906878
commit a9aae99f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ def reset_seed(seed=0):
def set_random_master_port():
reset_seed()
port = RANDOM_PORTS.pop()
os.environ['MASTER_PORT'] = "29501"
os.environ['MASTER_PORT'] = str(port)
def init_checkpoint_callback(logger):