From 81ef8b7f8f6105af639f63947297892139452b6f Mon Sep 17 00:00:00 2001 From: Zeng Jinle <32832641+sneaxiy@users.noreply.github.com> Date: Tue, 3 Dec 2019 10:52:24 +0800 Subject: [PATCH] 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/fluid/op_use_default_grad_op_maker.spec | 7 ------- paddle/scripts/paddle_build.sh | 11 +++-------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/paddle/fluid/op_use_default_grad_op_maker.spec b/paddle/fluid/op_use_default_grad_op_maker.spec index ece45a553e..5defd15368 100644 --- a/paddle/fluid/op_use_default_grad_op_maker.spec +++ b/paddle/fluid/op_use_default_grad_op_maker.spec @@ -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 diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 1c13359303..211a368025 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -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 } -- GitLab