未验证 提交 9b8caaa2 编写于 作者: Z zhupengyang 提交者: GitHub

remove unnecessary cases with no_grad_set for prelu (#22707)

test=develop
上级 a5b0758f
...@@ -55,15 +55,9 @@ class PReluTest(OpTest): ...@@ -55,15 +55,9 @@ class PReluTest(OpTest):
def test_check_output(self): def test_check_output(self):
self.check_output() self.check_output()
def test_check_grad_1_ignore_x(self): def test_check_grad(self):
self.check_grad(['Alpha'], 'Out', no_grad_set=set('X'))
def test_check_grad_2(self):
self.check_grad(['X', 'Alpha'], 'Out') self.check_grad(['X', 'Alpha'], 'Out')
def test_check_grad_3_ignore_alpha(self):
self.check_grad(['X'], 'Out', no_grad_set=set('Alpha'))
# TODO(minqiyang): Resume these test cases after fixing Python3 CI job issues # TODO(minqiyang): Resume these test cases after fixing Python3 CI job issues
if six.PY2: if six.PY2:
......
...@@ -60,7 +60,6 @@ NEED_TO_FIX_OP_LIST = [ ...@@ -60,7 +60,6 @@ NEED_TO_FIX_OP_LIST = [
'matmul', 'matmul',
'mul', 'mul',
'multiplex', 'multiplex',
'prelu',
'rank_loss', 'rank_loss',
'row_conv', 'row_conv',
'sequence_conv', 'sequence_conv',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册