Update utils.py
This commit is contained in:
parent
ea74906878
commit
a9aae99f6e
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue