diff --git a/python/paddle/fluid/tests/unittests/test_prelu_op.py b/python/paddle/fluid/tests/unittests/test_prelu_op.py index 14c5840ef80abc30d2b7c8cfe348ecb5873783ec..ef984d80758eed2e2e2f15f5d58a8e3737a1362c 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 d926a26c1a77d70760b2e707942e8d044f44985a..401eb8b708cdbac69be5a2e0acdc4d476e445150 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',