From e729f16cb14374957d47f5ee9d51c8df4ab7829b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=B0=B8=E4=B9=85?= <34344716+yjjiang11@users.noreply.github.com> Date: Thu, 8 Dec 2022 19:56:22 -0800 Subject: [PATCH] rm distribution uniform eager guard test (#48768) * rm distribution uniform eager guard test * review --- .../tests/unittests/distribution/test_distribution_uniform.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/distribution/test_distribution_uniform.py b/python/paddle/fluid/tests/unittests/distribution/test_distribution_uniform.py index b1abb51b7b..da5500ccef 100644 --- a/python/paddle/fluid/tests/unittests/distribution/test_distribution_uniform.py +++ b/python/paddle/fluid/tests/unittests/distribution/test_distribution_uniform.py @@ -21,7 +21,6 @@ import paddle from paddle import fluid from paddle.distribution import Uniform from paddle.fluid import layers -from paddle.fluid.framework import _test_eager_guard np.random.seed(2022) @@ -146,9 +145,6 @@ class UniformTest(unittest.TestCase): self.compare_with_numpy(fetch_list) def test_uniform_distribution_dygraph(self): - with _test_eager_guard(): - self.setUp() - self.func_uniform_distribution_dygraph() self.setUp() self.func_uniform_distribution_dygraph() -- GitLab