From c8d17ab3ca9d6e119e650acb764e7c8c69438108 Mon Sep 17 00:00:00 2001 From: songyouwei Date: Fri, 13 Mar 2020 09:58:42 +0800 Subject: [PATCH] fix check_sequence_op script (#22986) --- tools/check_sequence_op.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check_sequence_op.sh b/tools/check_sequence_op.sh index c011891f62..ada96750ea 100644 --- a/tools/check_sequence_op.sh +++ b/tools/check_sequence_op.sh @@ -6,7 +6,7 @@ function check_sequnece_op_unitests(){ check_white_list_file=$1 function_grep=$2 INVALID_SEQUENCE_OP_UNITTEST="" - all_sequence_ops=`grep '(sequence_' ${PADDLE_ROOT}/build/paddle/fluid/pybind/pybind.h | grep -Ev '^$' | cut -d'(' -f 2 | cut -d')' -f 1` + all_sequence_ops=`grep 'OP(sequence_' ${PADDLE_ROOT}/build/paddle/fluid/pybind/pybind.h | grep -Ev '^$' | cut -d'(' -f 2 | cut -d')' -f 1` for op_name in ${all_sequence_ops}; do in_white_list=`python ${PADDLE_ROOT}/${check_white_list_file} ${op_name}` if [ "${in_white_list}" == "True" ]; then -- GitLab