From 9b8caaa220a6ad814e6a4607bde7887c163eeb2c Mon Sep 17 00:00:00 2001 From: zhupengyang <1165938320@qq.com> Date: Mon, 24 Feb 2020 10:31:30 +0800 Subject: [PATCH] remove unnecessary cases with no_grad_set for prelu (#22707) test=develop --- python/paddle/fluid/tests/unittests/test_prelu_op.py | 8 +------- .../tests/unittests/white_list/no_grad_set_white_list.py | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_prelu_op.py b/python/paddle/fluid/tests/unittests/test_prelu_op.py index 14c5840ef8..ef984d8075 100644 --- a/python/paddle/fluid/tests/unittests/test_prelu_op.py +++ b/python/paddle/fluid/tests/unittests/test_prelu_op.py @@ -55,15 +55,9 @@ class PReluTest(OpTest): def test_check_output(self): self.check_output() - def test_check_grad_1_ignore_x(self): - self.check_grad(['Alpha'], 'Out', no_grad_set=set('X')) - - def test_check_grad_2(self): + def test_check_grad(self): 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 if six.PY2: diff --git a/python/paddle/fluid/tests/unittests/white_list/no_grad_set_white_list.py b/python/paddle/fluid/tests/unittests/white_list/no_grad_set_white_list.py index d926a26c1a..401eb8b708 100644 --- a/python/paddle/fluid/tests/unittests/white_list/no_grad_set_white_list.py +++ b/python/paddle/fluid/tests/unittests/white_list/no_grad_set_white_list.py @@ -60,7 +60,6 @@ NEED_TO_FIX_OP_LIST = [ 'matmul', 'mul', 'multiplex', - 'prelu', 'rank_loss', 'row_conv', 'sequence_conv', -- GitLab