未验证 提交 e3a078fb 编写于 作者: Z zhongpu 提交者: GitHub

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
上级 e5af90aa
...@@ -217,7 +217,7 @@ class TestDataNormOp(OpTest): ...@@ -217,7 +217,7 @@ class TestDataNormOp(OpTest):
""" """
test check backward, check grad 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): class TestDataNormOpWithSlotDim(OpTest):
...@@ -273,7 +273,7 @@ class TestDataNormOpWithSlotDim(OpTest): ...@@ -273,7 +273,7 @@ class TestDataNormOpWithSlotDim(OpTest):
""" """
test check backward, check grad 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): class TestDataNormOpWithSyncStats(unittest.TestCase):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册