fix port env bug(int);test=develop (#27405)

revert-27520-disable_pr
danleifeng 4 years ago committed by GitHub
parent e217e965a9
commit fc61efd736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -156,7 +156,7 @@ def get_cluster_from_args(args, gpus):
else:
start_port = 6070
if os.environ.get('FLAGS_START_PORT') is not None:
start_port = os.environ.get('FLAGS_START_PORT')
start_port = int(os.environ.get('FLAGS_START_PORT'))
free_ports = [x for x in range(start_port, start_port + len(gpus))]

Loading…
Cancel
Save