fix test, test=develop (#25634)

fix_copy_if_different
Leo Chen 5 years ago committed by GitHub
parent 95fa383df2
commit a4512dae30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save