未验证 提交 a4512dae 编写于 作者: L Leo Chen 提交者: GitHub

fix test, test=develop (#25634)

上级 95fa383d
......@@ -59,7 +59,8 @@ class TestMathOpPatchesVarBase(unittest.TestCase):
a = fluid.dygraph.to_variable(a_np)
b = fluid.dygraph.to_variable(b_np)
res = a / b
self.assertTrue(np.array_equal(res.numpy(), a_np / b_np))
#NOTE: Not sure why array_equal fails on windows, allclose is acceptable
self.assertTrue(np.allclose(res.numpy(), a_np / b_np))
def test_add_scalar(self):
a_np = np.random.random(self.shape).astype(self.dtype)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册