未验证 提交 e729f16c 编写于 作者: 姜永久 提交者: GitHub

rm distribution uniform eager guard test (#48768)

* rm distribution uniform eager guard test

* review
上级 3d1902dc
...@@ -21,7 +21,6 @@ import paddle ...@@ -21,7 +21,6 @@ import paddle
from paddle import fluid from paddle import fluid
from paddle.distribution import Uniform from paddle.distribution import Uniform
from paddle.fluid import layers from paddle.fluid import layers
from paddle.fluid.framework import _test_eager_guard
np.random.seed(2022) np.random.seed(2022)
...@@ -146,9 +145,6 @@ class UniformTest(unittest.TestCase): ...@@ -146,9 +145,6 @@ class UniformTest(unittest.TestCase):
self.compare_with_numpy(fetch_list) self.compare_with_numpy(fetch_list)
def test_uniform_distribution_dygraph(self): def test_uniform_distribution_dygraph(self):
with _test_eager_guard():
self.setUp()
self.func_uniform_distribution_dygraph()
self.setUp() self.setUp()
self.func_uniform_distribution_dygraph() self.func_uniform_distribution_dygraph()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册