未验证 提交 df144e21 编写于 作者: H HappyAngel 提交者: GitHub

add no_check_list for no_grad_set rule (#22571)

上级 13798753
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
# limitations under the License. # limitations under the License.
# check no_grad_set is None # check no_grad_set is None
NOT_CHECK_OP_LIST = [] NOT_CHECK_OP_LIST = ['deformable_conv']
# TODO(Shixiaowei02): Check if the items do not need fix. # TODO(Shixiaowei02): Check if the items do not need fix.
# no_grad_set has value in NEED_TO_FIX_OP_LIST # no_grad_set has value in NEED_TO_FIX_OP_LIST
# yapf: disable # yapf: disable
...@@ -31,7 +32,6 @@ NEED_TO_FIX_OP_LIST = [ ...@@ -31,7 +32,6 @@ NEED_TO_FIX_OP_LIST = [
'cross_entropy', 'cross_entropy',
'cross_entropy2', 'cross_entropy2',
'data_norm', 'data_norm',
'deformable_conv',
'deformable_conv_v1', 'deformable_conv_v1',
'depthwise_conv2d', 'depthwise_conv2d',
'depthwise_conv2d_transpose', 'depthwise_conv2d_transpose',
......
...@@ -132,7 +132,7 @@ for API_FILE in ${API_FILES[*]}; do ...@@ -132,7 +132,7 @@ for API_FILE in ${API_FILES[*]}; do
echo_line="You must have one RD (songyouwei, luotao1 or phlrain) approval for ${API_FILE}, which manages the white list of batch size 1 input for sequence op test. For more information, please refer to [https://github.com/PaddlePaddle/Paddle/wiki/It-is-required-to-include-LoDTensor-input-with-batch_size=1-in-sequence-OP-test]. \n" echo_line="You must have one RD (songyouwei, luotao1 or phlrain) approval for ${API_FILE}, which manages the white list of batch size 1 input for sequence op test. For more information, please refer to [https://github.com/PaddlePaddle/Paddle/wiki/It-is-required-to-include-LoDTensor-input-with-batch_size=1-in-sequence-OP-test]. \n"
check_approval 1 2573291 6836917 43953930 check_approval 1 2573291 6836917 43953930
elif [ "${API_FILE}" == "python/paddle/fluid/tests/unittests/white_list/no_grad_set_white_list.py" ];then elif [ "${API_FILE}" == "python/paddle/fluid/tests/unittests/white_list/no_grad_set_white_list.py" ];then
echo_line="You must have one RD (Shixiaowei02 (Recommend), luotao1 or phlrain) approval for the python/paddle/fluid/tests/unittests/white_list/no_grad_set_white_list.py, which manages the white list of no_grad_set without value in operators.\n" echo_line="You must have one RD (Shixiaowei02 (Recommend), luotao1 or phlrain) approval for the python/paddle/fluid/tests/unittests/white_list/no_grad_set_white_list.py, which manages the white list of no_grad_set without value in operators. For more information, please refer to[https://github.com/PaddlePaddle/Paddle/wiki/It's-recommend-to-set-no_grad_set-to-be-None].\n"
check_approval 1 39303645 6836917 43953930 check_approval 1 39303645 6836917 43953930
else else
echo_line="You must have one RD (XiaoguangHu01,Xreki,luotao1,sneaxiy) approval for ${API_FILE}, which manages the underlying code for fluid.\n" echo_line="You must have one RD (XiaoguangHu01,Xreki,luotao1,sneaxiy) approval for ${API_FILE}, which manages the underlying code for fluid.\n"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册