diff --git a/python/paddle/fluid/tests/unittests/test_cast_op.py b/python/paddle/fluid/tests/unittests/test_cast_op.py index 816c507cea71a9f81e54e942412472f0fabc6523..baa5bc3d90dd348a1270f05b12013861165780e2 100644 --- a/python/paddle/fluid/tests/unittests/test_cast_op.py +++ b/python/paddle/fluid/tests/unittests/test_cast_op.py @@ -68,7 +68,7 @@ class TestCastOpFp16ToFp32(OpTest): self.public_python_api = cast_wrapper def test_check_output(self): - self.check_output(atol=1e-3) + self.check_output() def test_grad(self): self.check_grad(['X'], ['Out'], check_prim=True, only_check_prim=True) @@ -89,7 +89,7 @@ class TestCastOpFp32ToFp16(OpTest): self.public_python_api = cast_wrapper def test_check_output(self): - self.check_output(atol=1e-3) + self.check_output() def test_grad(self): self.check_grad(['X'], ['Out'], check_prim=True, only_check_prim=True)