From a8e93e33281f84e5f6fbc2b4bf05ea3e63611519 Mon Sep 17 00:00:00 2001 From: yukavio Date: Fri, 14 Aug 2020 09:58:11 +0800 Subject: [PATCH] set check_dygraph=True --- .../paddle/fluid/tests/unittests/test_one_hot_new_op.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_one_hot_new_op.py b/python/paddle/fluid/tests/unittests/test_one_hot_new_op.py index 339f689998f..181c0d4b0e7 100644 --- a/python/paddle/fluid/tests/unittests/test_one_hot_new_op.py +++ b/python/paddle/fluid/tests/unittests/test_one_hot_new_op.py @@ -45,7 +45,7 @@ class TestOneHotOp(OpTest): self.outputs = {'Out': (out, x_lod)} def test_check_output(self): - self.check_output(check_dygraph=False) + self.check_output(check_dygraph=True) class TestOneHotOp_attr(OpTest): @@ -68,7 +68,7 @@ class TestOneHotOp_attr(OpTest): self.outputs = {'Out': (out, x_lod)} def test_check_output(self): - self.check_output(check_dygraph=False) + self.check_output(check_dygraph=True) class TestOneHotOp_default_dtype(OpTest): @@ -91,7 +91,7 @@ class TestOneHotOp_default_dtype(OpTest): self.outputs = {'Out': (out, x_lod)} def test_check_output(self): - self.check_output(check_dygraph=False) + self.check_output(check_dygraph=True) class TestOneHotOp_default_dtype_attr(OpTest): @@ -114,7 +114,7 @@ class TestOneHotOp_default_dtype_attr(OpTest): self.outputs = {'Out': (out, x_lod)} def test_check_output(self): - self.check_output(check_dygraph=False) + self.check_output(check_dygraph=True) class TestOneHotOp_exception(unittest.TestCase): -- GitLab