diff --git a/python/paddle/fluid/tests/unittests/test_complex_sum_layer.py b/python/paddle/fluid/tests/unittests/test_complex_sum_layer.py index 09d4828de9bb9057044f5139f38164c8795d912c..d40360d725bc51be9342ced02922a113e8f52817 100644 --- a/python/paddle/fluid/tests/unittests/test_complex_sum_layer.py +++ b/python/paddle/fluid/tests/unittests/test_complex_sum_layer.py @@ -21,7 +21,6 @@ import paddle import paddle.fluid as fluid import paddle.fluid.dygraph as dg from paddle import tensor -from paddle.fluid.framework import _test_eager_guard class TestComplexSumLayer(unittest.TestCase): @@ -43,10 +42,6 @@ class TestComplexSumLayer(unittest.TestCase): target = np.sum(input, axis=(1, 2)) np.testing.assert_allclose(result, target, rtol=1e-05) - def test_eager(self): - with _test_eager_guard(): - self.test_complex_basic_api() - if __name__ == '__main__': unittest.main() diff --git a/python/paddle/fluid/tests/unittests/test_complex_trace_layer.py b/python/paddle/fluid/tests/unittests/test_complex_trace_layer.py index d0188ae9b198780259c283d5c6605835f33287ba..38a04a8e8dc7f215825bb4ffd6f47691cbf5781b 100644 --- a/python/paddle/fluid/tests/unittests/test_complex_trace_layer.py +++ b/python/paddle/fluid/tests/unittests/test_complex_trace_layer.py @@ -20,7 +20,6 @@ from numpy.random import random as rand import paddle.fluid as fluid import paddle.fluid.dygraph as dg from paddle import tensor -from paddle.fluid.framework import _test_eager_guard class TestComplexTraceLayer(unittest.TestCase): @@ -44,10 +43,6 @@ class TestComplexTraceLayer(unittest.TestCase): target = np.trace(input, offset=1, axis1=0, axis2=2) np.testing.assert_allclose(result, target, rtol=1e-05) - def test_eager(self): - with _test_eager_guard(): - self.test_basic_api() - if __name__ == '__main__': unittest.main() diff --git a/python/paddle/fluid/tests/unittests/test_complex_transpose.py b/python/paddle/fluid/tests/unittests/test_complex_transpose.py index adc421a96605b669a6a8362768bc6abb370c3f2d..f0204c345e860dc84f847c6f9eaa58bc2e7e3189 100644 --- a/python/paddle/fluid/tests/unittests/test_complex_transpose.py +++ b/python/paddle/fluid/tests/unittests/test_complex_transpose.py @@ -19,7 +19,6 @@ import numpy as np import paddle import paddle.fluid as fluid import paddle.fluid.dygraph as dg -from paddle.fluid.framework import _test_eager_guard class TestComplexTransposeLayer(unittest.TestCase): @@ -42,10 +41,6 @@ class TestComplexTransposeLayer(unittest.TestCase): trans = paddle.transpose(var, perm=perm) np.testing.assert_allclose(trans.numpy(), np_trans, rtol=1e-05) - def test_eager(self): - with _test_eager_guard(): - self.test_transpose_by_complex_api() - if __name__ == '__main__': unittest.main() diff --git a/python/paddle/fluid/tests/unittests/test_complex_variable.py b/python/paddle/fluid/tests/unittests/test_complex_variable.py index 57774ac5f09b0096e680be0ebb83e6e824104c7c..34f199a9a5f8b0b766c0f6ea536acb4c46b5641b 100644 --- a/python/paddle/fluid/tests/unittests/test_complex_variable.py +++ b/python/paddle/fluid/tests/unittests/test_complex_variable.py @@ -20,7 +20,7 @@ import paddle import paddle.fluid.core as core import paddle.fluid.dygraph as dg from paddle.fluid.data_feeder import convert_dtype -from paddle.fluid.framework import _test_eager_guard, convert_np_dtype_to_dtype_ +from paddle.fluid.framework import convert_np_dtype_to_dtype_ class TestComplexVariable(unittest.TestCase): @@ -64,12 +64,6 @@ class TestComplexVariable(unittest.TestCase): convert_dtype(core.VarDesc.VarType.COMPLEX128), "complex128" ) - def test_eager(self): - with _test_eager_guard(): - self.test_attrs() - self.test_convert_np_dtype_to_dtype() - self.test_convert_dtype() - if __name__ == '__main__': unittest.main() diff --git a/python/paddle/fluid/tests/unittests/test_complex_view_op.py b/python/paddle/fluid/tests/unittests/test_complex_view_op.py index e73c936e4a9b6f0a0117f707e433936da38fc09f..1b15edd5436597d9c3dc149e19ed76dd5781963f 100644 --- a/python/paddle/fluid/tests/unittests/test_complex_view_op.py +++ b/python/paddle/fluid/tests/unittests/test_complex_view_op.py @@ -20,7 +20,6 @@ from op_test import OpTest import paddle from paddle import static from paddle.fluid import dygraph -from paddle.fluid.framework import _test_eager_guard paddle.enable_static() @@ -106,10 +105,6 @@ class TestViewAsComplexAPI(unittest.TestCase): [out_np] = exe.run(mp, feed={"x": self.x}, fetch_list=[out]) np.testing.assert_allclose(self.out, out_np, rtol=1e-05) - def test_eager(self): - with _test_eager_guard(): - self.test_dygraph() - class TestViewAsRealAPI(unittest.TestCase): def setUp(self): @@ -133,10 +128,6 @@ class TestViewAsRealAPI(unittest.TestCase): [out_np] = exe.run(mp, feed={"x": self.x}, fetch_list=[out]) np.testing.assert_allclose(self.out, out_np, rtol=1e-05) - def test_eager(self): - with _test_eager_guard(): - self.test_dygraph() - if __name__ == "__main__": unittest.main()