From e3a078fb4a44ce3be65a67827d7b9bf499d767d8 Mon Sep 17 00:00:00 2001 From: zhongpu <2013000149@qq.com> Date: Thu, 26 Mar 2020 17:04:38 +0800 Subject: [PATCH] remove check_dygraph=False in test_data_norm_op optest (#22335) * fix bug when grad_op's output not be used in compute kernel in dygraph mode, test=develop * fix test_data_norm_op.py, test=develop * polish code style, test=develop * fix error of data_norm's infershape, test=develop * polish comment, test=develop --- python/paddle/fluid/tests/unittests/test_data_norm_op.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_data_norm_op.py b/python/paddle/fluid/tests/unittests/test_data_norm_op.py index 9b0e5b5095a..e2bbf8a077f 100644 --- a/python/paddle/fluid/tests/unittests/test_data_norm_op.py +++ b/python/paddle/fluid/tests/unittests/test_data_norm_op.py @@ -217,7 +217,7 @@ class TestDataNormOp(OpTest): """ test check backward, check grad """ - self.check_grad(['X'], 'Y', no_grad_set=set([]), check_dygraph=False) + self.check_grad(['X'], 'Y', no_grad_set=set([])) class TestDataNormOpWithSlotDim(OpTest): @@ -273,7 +273,7 @@ class TestDataNormOpWithSlotDim(OpTest): """ test check backward, check grad """ - self.check_grad(['X'], 'Y', no_grad_set=set([]), check_dygraph=False) + self.check_grad(['X'], 'Y', no_grad_set=set([])) class TestDataNormOpWithSyncStats(unittest.TestCase): -- GitLab