提交 6e26bfe8 编写于 作者: X Xin Pan

polish

上级 db7b92d0
...@@ -43,7 +43,7 @@ class TestDistBase(unittest.TestCase): ...@@ -43,7 +43,7 @@ class TestDistBase(unittest.TestCase):
return ps0_proc, ps1_proc return ps0_proc, ps1_proc
def _wait_ps_ready(self, pid): def _wait_ps_ready(self, pid):
retry_times = 20 retry_times = 50
while True: while True:
assert retry_times >= 0, "wait ps ready failed" assert retry_times >= 0, "wait ps ready failed"
time.sleep(3) time.sleep(3)
...@@ -52,7 +52,9 @@ class TestDistBase(unittest.TestCase): ...@@ -52,7 +52,9 @@ class TestDistBase(unittest.TestCase):
# on the /tmp directory until it was ready to process all the RPC call. # on the /tmp directory until it was ready to process all the RPC call.
os.stat("/tmp/paddle.%d.port" % pid) os.stat("/tmp/paddle.%d.port" % pid)
return return
except os.error: except os.error as e:
sys.stderr.write('waiting for pserver: %s, left retry %d\n' %
(e, retry_times))
retry_times -= 1 retry_times -= 1
def check_with_place(self, model_file, delta=1e-3): def check_with_place(self, model_file, delta=1e-3):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册