未验证 提交 619848fa 编写于 作者: A Aurelius84 提交者: GitHub

fix timeout test=develop (#25412)

上级 e39aa70e
......@@ -513,13 +513,8 @@ class TestLACModel(unittest.TestCase):
return out
def test_train(self):
# TODO(Aurelius84): The unittest will hang sometimes under command "ctest"
# on Windows platform, which means it failed to start up this unittest.
# So the unittest raised timeout.
if os.name == 'nt':
return
dy_out = self.train(to_static=False)
st_out = self.train(to_static=True)
dy_out = self.train(to_static=False)
self.assertTrue(
np.allclose(dy_out, st_out),
msg="dygraph output:\n{},\nstatic output:\n {}.".format(dy_out,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册