未验证 提交 fc61efd7 编写于 作者: D danleifeng 提交者: GitHub

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

上级 e217e965
......@@ -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))]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册