未验证 提交 81ef8b7f 编写于 作者: Z Zeng Jinle 提交者: GitHub

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
上级 87ab93af
cos_sim cos_sim
flatten
fsp fsp
gru gru
lrn
lstm_unit lstm_unit
match_matrix_tensor match_matrix_tensor
max_pool2d_with_index max_pool2d_with_index
max_pool3d_with_index max_pool3d_with_index
maxout maxout
nce
pool2d pool2d
pool3d pool3d
prelu
reduce_max reduce_max
reduce_min reduce_min
reduce_prod reduce_prod
...@@ -19,9 +15,6 @@ reshape ...@@ -19,9 +15,6 @@ reshape
rnn_memory_helper rnn_memory_helper
sequence_softmax sequence_softmax
spp spp
squeeze
tensor_array_to_tensor tensor_array_to_tensor
transpose transpose
unpool
unsqueeze unsqueeze
var_conv_2d
...@@ -496,15 +496,10 @@ function generate_api_spec() { ...@@ -496,15 +496,10 @@ function generate_api_spec() {
fi fi
# TODO(paddle-dev): remove op_use_default_grad_op_maker.spec # 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 [ "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 \ python ${PADDLE_ROOT}/tools/diff_use_default_grad_op_maker.py \
${PADDLE_ROOT}/paddle/fluid/op_use_default_grad_op_maker.spec ${PADDLE_ROOT}/paddle/fluid/op_use_default_grad_op_maker.spec
fi fi
fi
fi
deactivate deactivate
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册