Fix CI DefaultGradOpMaker check (#21482)

* fix default grad op maker ci bug, test=develop, test=document_fix

* remove some ops from paddle/fluid/op_use_default_grad_op_maker.spec, test=develop, test=document_fix
paddle_tiny_install
Zeng Jinle 6 years ago committed by GitHub
parent 87ab93af01
commit 81ef8b7f8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,17 +1,13 @@
cos_sim
flatten
fsp
gru
lrn
lstm_unit
match_matrix_tensor
max_pool2d_with_index
max_pool3d_with_index
maxout
nce
pool2d
pool3d
prelu
reduce_max
reduce_min
reduce_prod
@ -19,9 +15,6 @@ reshape
rnn_memory_helper
sequence_softmax
spp
squeeze
tensor_array_to_tensor
transpose
unpool
unsqueeze
var_conv_2d

@ -496,14 +496,9 @@ function generate_api_spec() {
fi
# TODO(paddle-dev): remove op_use_default_grad_op_maker.spec
# Currently, we only check in PR_CI python 2.7
if [ "spec_kind" == "PR" ]; then
if [ "$SYSTEM" != "Darwin" ]; then
if [ "$1" == "" ] || [ "$1" == "cp27-cp27m" ] || [ "$1" == "cp27-cp27mu" ]; then
python ${PADDLE_ROOT}/tools/diff_use_default_grad_op_maker.py \
${PADDLE_ROOT}/paddle/fluid/op_use_default_grad_op_maker.spec
fi
fi
if [ "$spec_kind" == "PR" ]; then
python ${PADDLE_ROOT}/tools/diff_use_default_grad_op_maker.py \
${PADDLE_ROOT}/paddle/fluid/op_use_default_grad_op_maker.spec
fi
deactivate
}

Loading…
Cancel
Save