Skip to content

Commit c317b9d

Browse files
committed
test
1 parent e7dfab6 commit c317b9d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

ci_scripts/ci_start.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ git merge --no-edit upstream/${BRANCH}
8787
need_check_cn_doc_files=$(find_all_cn_api_files_modified_by_pr)
8888
echo $need_check_cn_doc_files
8989

90-
# Check for existing stock issues.
91-
find_cn_rst_files() {
92-
local search_dir="$SCRIPT_DIR/../docs/api/paddle"
93-
find "$search_dir" -type f -name "*_cn.rst"
94-
}
95-
all_api_cn_files=$(find_cn_rst_files)
90+
# # Check for existing stock issues.
91+
# find_cn_rst_files() {
92+
# local search_dir="$SCRIPT_DIR/../docs/api/paddle"
93+
# find "$search_dir" -type f -name "*_cn.rst"
94+
# }
95+
# all_api_cn_files=$(find_cn_rst_files)
9696

9797
check_parameters=ON
9898
if [ "${check_parameters}" = "OFF" ] ; then
@@ -102,7 +102,7 @@ else
102102
jsonfn=${OUTPUTDIR}/en/${VERSIONSTR}/gen_doc_output/api_info_all.json
103103
if [ -f $jsonfn ] ; then
104104
echo "$jsonfn exists."
105-
/bin/bash ${DIR_PATH}/check_api_parameters.sh "${all_api_cn_files}" ${jsonfn}
105+
/bin/bash ${DIR_PATH}/check_api_parameters.sh "${need_check_cn_doc_files}" ${jsonfn}
106106
if [ $? -ne 0 ];then
107107
exit 1
108108
fi

docs/api/paddle/amp/auto_cast_cn.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
auto_cast
44
-------------------------------
55

6-
.. py:function:: paddle.amp.auto_cast(enable=True, custom_white_list=None, custom_black_list=None, level='O1', dtype='float16', use_promote=True)
6+
.. py:function:: paddle.amp.auto_cast(enable=True, custom_white_list=None, custom_black_list=None, level='O1', dtype='float16')
77
88
99
创建一个上下文环境,来支持动态图模式下执行的算子的自动混合精度策略(AMP)。

0 commit comments

Comments
 (0)