提交 e92ad8a2 编写于 作者: Q Qiao Longfei

optimize test_async_ssa_graph_executor_mnist test=develop

上级 b2c082c4
...@@ -178,8 +178,8 @@ class TestAsyncSSAGraphExecutor(unittest.TestCase): ...@@ -178,8 +178,8 @@ class TestAsyncSSAGraphExecutor(unittest.TestCase):
main_program=fluid.Program(), main_program=fluid.Program(),
startup_program=fluid.Program()): startup_program=fluid.Program()):
test() test()
assert int(step_list[0] / 2) == int(step_list[1]) assert abs(int(step_list[0] / 2) - int(step_list[1])) < 5
assert int(step_list[1] / 2) == int(step_list[2]) assert abs(int(step_list[1] / 2) - int(step_list[2])) < 5
if __name__ == "__main__": if __name__ == "__main__":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册