From 5b282a81575c62ebeb458b0e64ba31157f335be6 Mon Sep 17 00:00:00 2001 From: zhupengyang Date: Tue, 24 Dec 2019 12:18:59 +0800 Subject: [PATCH] skip check_grad of TestHSigmoidOpSparse (#21888) --- python/paddle/fluid/tests/unittests/test_hsigmoid_op.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/unittests/test_hsigmoid_op.py b/python/paddle/fluid/tests/unittests/test_hsigmoid_op.py index cb9f495de8..33c65d00e0 100644 --- a/python/paddle/fluid/tests/unittests/test_hsigmoid_op.py +++ b/python/paddle/fluid/tests/unittests/test_hsigmoid_op.py @@ -19,7 +19,7 @@ import numpy as np import paddle.fluid.core as core import paddle.fluid as fluid import math -from op_test import OpTest +from op_test import OpTest, skip_check_grad_ci np.random.seed(100) @@ -165,6 +165,9 @@ class TestHSigmoidOp(OpTest): self.check_grad(['Bias', 'X', 'W'], ['Out'], no_grad_set=set('Label')) +@skip_check_grad_ci( + reason="For 'TestHSigmoidOpSparse', check_grad is 'TestHSigmoidOpWithSparseGrad'." +) class TestHSigmoidOpSparse(OpTest): def setUp(self): self.op_type = "hierarchical_sigmoid" -- GitLab