Skip to content

Commit 2aee46d

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into check_invok_diff_api_difference
2 parents 2529fda + de289cb commit 2aee46d

38 files changed

+99
-140
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ English | [简体中文](./README_cn.md) | [日本語](./README_ja.md)
55

66
Source files for contents presented at [PaddlePaddle documentation](https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/index_cn.html).
77

8-
Note: English version API docs are generaly docstrings in [PaddlePaddle/Paddle](https://github.com/PaddlePaddle/Paddle), documents for [other PaddlePaddle projects](https://www.paddlepaddle.org.cn/overview) are being managed in their respective ways.
8+
Note: English version API docs are generally docstrings in [PaddlePaddle/Paddle](https://github.com/PaddlePaddle/Paddle), documents for [other PaddlePaddle projects](https://www.paddlepaddle.org.cn/overview) are being managed in their respective ways.
99

1010
## Codebase structure
1111

_typos.toml

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ CANN = "CANN"
1919
Clas = "Clas"
2020
arange = "arange"
2121
unsupport = "unsupport"
22+
Nervana = "Nervana"
2223

2324
# These words need to be fixed
2425
Accuray = "Accuray"
@@ -27,22 +28,12 @@ Archetecture = "Archetecture"
2728
Asynchoronous = "Asynchoronous"
2829
Attrbute = "Attrbute"
2930
Attribtue = "Attribtue"
30-
Classfication = "Classfication"
31-
Comparision = "Comparision"
32-
Contructing = "Contructing"
3331
Creenshot = "Creenshot"
3432
Embeddding = "Embeddding"
3533
Embeding = "Embeding"
3634
Engish = "Engish"
37-
Generater = "Generater"
38-
Gloabal = "Gloabal"
39-
Imporvement = "Imporvement"
40-
Interfce = "Interfce"
41-
Kernal = "Kernal"
4235
Learing = "Learing"
4336
Moible = "Moible"
44-
Nervana = "Nervana"
45-
Numberic = "Numberic"
4637
Operaton = "Operaton"
4738
Optimizaing = "Optimizaing"
4839
Optimzier = "Optimzier"
@@ -62,19 +53,11 @@ Similarily = "Similarily"
6253
Simle = "Simle"
6354
Sovler = "Sovler"
6455
Successed = "Successed"
65-
Tansformer = "Tansformer"
66-
Tenosr = "Tenosr"
67-
Traning = "Traning"
68-
Transfomed = "Transfomed"
69-
Tthe = "Tthe"
7056
Ture = "Ture"
7157
accordding = "accordding"
7258
accoustic = "accoustic"
7359
accpetance = "accpetance"
74-
caculate = "caculate"
7560
cantains = "cantains"
76-
choosen = "choosen"
77-
classfication = "classfication"
7861
classfy = "classfy"
7962
cliping = "cliping"
8063
colunms = "colunms"
@@ -129,21 +112,8 @@ foward = "foward"
129112
functinal = "functinal"
130113
fundemental = "fundemental"
131114
funtion = "funtion"
132-
gard = "gard"
133-
generaly = "generaly"
134-
gloabl = "gloabl"
135-
heigh = "heigh"
136115
ilter = "ilter"
137-
imge = "imge"
138-
implememted = "implememted"
139-
indeces = "indeces"
140-
indentical = "indentical"
141-
indicies = "indicies"
142-
indx = "indx"
143-
infered = "infered"
144116
inferface = "inferface"
145-
infor = "infor"
146-
ingore = "ingore"
147117
instert = "instert"
148118
instrinsics = "instrinsics"
149119
interchangable = "interchangable"
@@ -169,9 +139,6 @@ metrices = "metrices"
169139
muliply = "muliply"
170140
mulitplying = "mulitplying"
171141
mutbale = "mutbale"
172-
neeeded = "neeeded"
173-
nessesary = "nessesary"
174-
numberic = "numberic"
175142
occurence = "occurence"
176143
opeartor = "opeartor"
177144
opeartors = "opeartors"
@@ -224,12 +191,10 @@ sucessor = "sucessor"
224191
sucessors = "sucessors"
225192
szie = "szie"
226193
tempory = "tempory"
227-
tenosr = "tenosr"
228194
thier = "thier"
229195
traget = "traget"
230196
traing = "traing"
231197
trainning = "trainning"
232-
traning = "traning"
233198
transfered = "transfered"
234199
trasformed = "trasformed"
235200
treshold = "treshold"

ci_scripts/ci_start.sh

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ if [ "${BUILD_DOC}" = "true" ] && [ -x /usr/local/bin/sphinx-build ] ; then
5757
git reset --hard && git clean -dfx
5858
cd ${DIR_PATH}
5959

60-
if [ -n "${BOS_CREDENTIAL_AK}" ] && [ -n "${BOS_CREDENTIAL_SK}" ] ; then
61-
echo "Ak = ${BOS_CREDENTIAL_AK}" >> ${BCECMD_CONFIG}/credentials
62-
echo "Sk = ${BOS_CREDENTIAL_SK}" >> ${BCECMD_CONFIG}/credentials
63-
fi
6460
if [ $xdebug_setted ] ; then
6561
set -x
6662
fi
@@ -70,14 +66,12 @@ if [ "${BUILD_DOC}" = "true" ] && [ -x /usr/local/bin/sphinx-build ] ; then
7066
if [ "${UPLOAD_DOC}" = "true" ] ; then
7167
PREVIEW_JOB_NAME="preview-pr-${GIT_PR_ID}"
7268
BOSBUCKET=${BOSBUCKET:=paddle-site-web-dev}
73-
${BCECMD} --conf-path ${BCECMD_CONFIG} bos sync "${OUTPUTDIR}/en/${VERSIONSTR}" "bos:/${BOSBUCKET}/documentation/en/${PREVIEW_JOB_NAME}" \
74-
--delete --yes --exclude "${OUTPUTDIR}/en/${VERSIONSTR}/_sources/"
75-
${BCECMD} --conf-path ${BCECMD_CONFIG} bos sync "${OUTPUTDIR}/en/${VERSIONSTR}" "bos:/${BOSBUCKET}/documentation/en/${PREVIEW_JOB_NAME}" \
76-
--delete --yes --exclude "${OUTPUTDIR}/en/${VERSIONSTR}/_sources/"
77-
${BCECMD} --conf-path ${BCECMD_CONFIG} bos sync "${OUTPUTDIR}/zh/${VERSIONSTR}" "bos:/${BOSBUCKET}/documentation/zh/${PREVIEW_JOB_NAME}" \
78-
--delete --yes --exclude "${OUTPUTDIR}/zh/${VERSIONSTR}/_sources/"
79-
${BCECMD} --conf-path ${BCECMD_CONFIG} bos sync "${OUTPUTDIR}/zh/${VERSIONSTR}" "bos:/${BOSBUCKET}/documentation/zh/${PREVIEW_JOB_NAME}" \
80-
--delete --yes --exclude "${OUTPUTDIR}/zh/${VERSIONSTR}/_sources/"
69+
wget -q --no-proxy https://xly-devops.bj.bcebos.com/home/bos_dir.tar --no-check-certificate
70+
tar xf bos_dir.tar
71+
python3 -m pip install bce-python-sdk==0.8.74
72+
# use bos_der.tar: The first parameter is to upload the directory, the second parameter is to upload the BOS directory, and the third parameter is to exclude the directory
73+
python3 BosClient.py ${OUTPUTDIR}/en/${VERSIONSTR} ${BOSBUCKET}/documentation/en/${PREVIEW_JOB_NAME} ${OUTPUTDIR}/en/${VERSIONSTR}/_sources/
74+
python3 BosClient.py ${OUTPUTDIR}/zh/${VERSIONSTR} ${BOSBUCKET}/documentation/zh/${PREVIEW_JOB_NAME} ${OUTPUTDIR}/zh/${VERSIONSTR}/_sources/
8175
# print preview url
8276
PREVIEW_URL_PROMPT="ipipe_log_param_preview_url: http://${PREVIEW_JOB_NAME}.${PREVIEW_SITE:-preview.paddlepaddle.org}/documentation/docs/zh/api/index_cn.html"
8377
fi

docs/api/paddle/distribution/Overview_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ paddle.distribution 目录下包含飞桨框架支持的随机变量的概率分
3535
" :ref:`MultivariateNormal <cn_api_paddle_distribution_MultivariateNormal>` ", "MultivariateNormal 概率分布类"
3636
" :ref:`Multinomial <cn_api_paddle_distribution_Multinomial>` ", "Multinomial 概率分布类"
3737
" :ref:`Independent <cn_api_paddle_distribution_Independent>` ", "Independent 概率分布类"
38-
" :ref:`TransfomedDistribution <cn_api_paddle_distribution_TransformedDistribution>` ", "TransformedDistribution 概率分布类"
38+
" :ref:`TransformedDistribution <cn_api_paddle_distribution_TransformedDistribution>` ", "TransformedDistribution 概率分布类"
3939
" :ref:`Laplace <cn_api_paddle_distribution_Laplace>`", "Laplace 概率分布类"
4040
" :ref:`LKJCholesky <cn_api_paddle_distribution_LKJCholesky>`", "LKJCholesky 概率分布类"
4141
" :ref:`LogNormal <cn_api_paddle_distribution_LogNormal>` ", "LogNormal 概率分布类"

docs/api/paddle/nn/BeamSearchDecoder_cn.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tile_beam_merge_with_batch(x, beam_size)
4444

4545
**参数**
4646

47-
- **x** (Variable) - 形状为 :math:`[batch\_size, ...]` 的 tenosr。数据类型应为 float32,float64,int32,int64 或 bool。
47+
- **x** (Variable) - 形状为 :math:`[batch\_size, ...]` 的 tensor。数据类型应为 float32,float64,int32,int64 或 bool。
4848
- **beam_size** (int) - 在 beam search 中使用的 beam 宽度。
4949

5050
**返回**
@@ -59,7 +59,7 @@ _split_batch_beams(x)
5959

6060
**参数**
6161

62-
- **x** (Variable) - 形状为 :math:`[batch\_size * beam\_size, ...]` 的 tenosr。数据类型应为 float32,float64,int32,int64 或 bool。
62+
- **x** (Variable) - 形状为 :math:`[batch\_size * beam\_size, ...]` 的 tensor。数据类型应为 float32,float64,int32,int64 或 bool。
6363

6464
**返回**
6565

@@ -72,7 +72,7 @@ _merge_batch_beams(x)
7272

7373
**参数**
7474

75-
- **x** (Variable) - 形状为 :math:`[batch\_size, beam_size,...]` 的 Tenosr。数据类型应为 float32,float64,int32,int64 或 bool。
75+
- **x** (Variable) - 形状为 :math:`[batch\_size, beam_size,...]` 的 Tensor。数据类型应为 float32,float64,int32,int64 或 bool。
7676

7777
**返回**
7878

@@ -85,7 +85,7 @@ _expand_to_beam_size(x)
8585

8686
**参数**
8787

88-
- **x** (Variable) - 形状为 :math:`[batch\_size, ...]` 的 tenosr。数据类型应为 float32,float64,int32,int64 或 bool。
88+
- **x** (Variable) - 形状为 :math:`[batch\_size, ...]` 的 tensor。数据类型应为 float32,float64,int32,int64 或 bool。
8989

9090
**返回**
9191

docs/api/paddle/nn/Upsample_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ https://en.wikipedia.org/wiki/Bicubic_interpolation
154154
- **scale_factor** (float|Tensor|list|tuple|None,可选) - 输入的深度、高度或宽度的缩放因子。:code:`size` 和 :code:`scale_factor` 至少要设置一个。:code:`size` 的优先级高于 :code:`scale_factor`。默认值为 None。如果 scale_factor 是一个 list 或 tuple,它必须与输入的 shape 匹配。
155155
- **mode** (str,可选) - 插值方法。支持"bilinear"或"trilinear"或"nearest"或"bicubic"或"linear"或"area"。默认值为"nearest"。
156156
- **align_corners** (bool,可选) - 一个可选的 bool 型参数,如果为 True,则将输入和输出 Tensor 的 4 个角落像素的中心对齐,并保留角点像素的值。默认值为 False。
157-
- **align_mode** (int,可选) - 双线性插值的可选项。可以是 '0' 代表 src_idx = scale *dst_indx + 0.5)-0.5;如果为'1',代表 src_idx = scale * dst_index。默认值为 0。
157+
- **align_mode** (int,可选) - 双线性插值的可选项。可以是 '0' 代表 src_idx = scale *dst_index + 0.5)-0.5;如果为'1',代表 src_idx = scale * dst_index。默认值为 0。
158158
- **data_format** (str,可选) - 指定输入的数据格式,输出的数据格式将与输入保持一致。支持的值有:"NCW"、"NWC"、"NCHW"、"NHWC"、"NCDHW"、"NDHWC"。默认值为 None,此时若输入是 3-D Tensor, ``data_format`` 将默认为"NCW";若输入是 4—D Tensor, 将默认为"NCHW";若输入是 5—D Tensor, 将默认为"NCDHW"。
159159
- **recompute_scale_factor** (bool,可选) - 是否在插值计算中重新计算乘数因子。当设置为 True 时,必须提供 scale_factor 参数,函数会用 scale_factor 和输入张量的形状计算输出张量的形状,然后根据输出张量形状和输入张量形状重新计算乘数因子。该参数可用于 scale_factor 为浮点数的情况。当设置为 False 时,将直接使用 size 或 scale_factor 进行插值计算,不进行重新计算。默认值为 None。
160160
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。

docs/api/paddle/nn/functional/interpolate_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ https://en.wikipedia.org/wiki/Bicubic_interpolation
146146
- **scale_factor** (float|Tensor|list|tuple|None)-输入的高度或宽度的乘数因子。out_shape 和 scale 至少要设置一个。out_shape 的优先级高于 scale。默认值为 None。如果 scale_factor 是一个 list 或 tuple,它必须与输入的 shape 匹配。
147147
- **mode** (str,可选) - 插值方法。支持"bilinear"或"trilinear"或"nearest"或"bicubic"或"linear"或"area"。默认值为"nearest"。
148148
- **align_corners** (bool,可选) - 一个可选的 bool 型参数,如果为 True,则将输入和输出 Tensor 的 4 个角落像素的中心对齐,并保留角点像素的值。默认值为 False。
149-
- **align_mode** (int,可选) - 双线性插值的可选项。可以是 '0' 代表 src_idx = scale *dst_indx + 0.5)-0.5;如果为'1',代表 src_idx = scale * dst_index。默认值:0。
149+
- **align_mode** (int,可选) - 双线性插值的可选项。可以是 '0' 代表 src_idx = scale *dst_index + 0.5)-0.5;如果为'1',代表 src_idx = scale * dst_index。默认值:0。
150150
- **data_format** (str,可选) - 指定输入的数据格式,输出的数据格式将与输入保持一致。支持的值有:"NCW"、"NWC"、"NCHW"、"NHWC"、"NCDHW"、"NDHWC"。默认值为 None,此时若输入是 3-D Tensor, ``data_format`` 将默认为"NCW";若输入是 4—D Tensor, 将默认为"NCHW";若输入是 5—D Tensor, 将默认为"NCDHW"。
151151
- **recompute_scale_factor** (bool,可选) - 是否在插值计算中重新计算乘数因子。当设置为 True 时,必须提供 scale_factor 参数,函数会用 scale_factor 和输入张量的形状计算输出张量的形状,然后根据输出张量形状和输入张量形状重新计算乘数因子。该参数可用于 scale_factor 为浮点数的情况。当设置为 False 时,将直接使用 size 或 scale_factor 进行插值计算,不进行重新计算。默认值为 None。
152152
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。

docs/api/paddle/nn/functional/upsample_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ https://en.wikipedia.org/wiki/Bicubic_interpolation
144144
- **size** (list|tuple|Tensor|None) - 输出 Tensor,输入为 4D Tensor 时,形状为为(out_h, out_w)的 2-D Tensor。输入为 5-D Tensor 时,形状为(out_d, out_h, out_w)的 3-D Tensor。如果 :code:`out_shape` 是列表,每一个元素可以是整数或者形状为[]的变量。如果 :code:`out_shape` 是变量,则其维度大小为 1。默认值为 None。
145145
- **scale_factor** (float|Tensor|list|tuple|None)-输入的高度或宽度的乘数因子。out_shape 和 scale 至少要设置一个。out_shape 的优先级高于 scale。默认值为 None。如果 scale_factor 是一个 list 或 tuple,它必须与输入的 shape 匹配。
146146
- **mode** (str,可选) - 插值方法。支持"bilinear"或"trilinear"或"nearest"或"bicubic"或"linear"或"area"。默认值为"nearest"。
147-
- **align_mode** (int,可选)- 双线性插值的可选项。可以是 '0' 代表 src_idx = scale *dst_indx + 0.5)-0.5;如果为'1',代表 src_idx = scale * dst_index。
147+
- **align_mode** (int,可选)- 双线性插值的可选项。可以是 '0' 代表 src_idx = scale *dst_index + 0.5)-0.5;如果为'1',代表 src_idx = scale * dst_index。
148148
- **align_corners** (bool,可选) - 一个可选的 bool 型参数,如果为 True,则将输入和输出 Tensor 的 4 个角落像素的中心对齐,并保留角点像素的值。默认值为 True
149149
- **data_format** (str,可选) - 指定输入的数据格式,输出的数据格式将与输入保持一致。支持的值有:"NCW"、"NWC"、"NCHW"、"NHWC"、"NCDHW"、"NDHWC"。默认值为 None,此时若输入是 3-D Tensor, ``data_format`` 将默认为"NCW";若输入是 4—D Tensor, 将默认为"NCHW";若输入是 5—D Tensor, 将默认为"NCDHW"。
150150
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。

docs/api/paddle/put_along_axis_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ put_along_axis
2121
返回
2222
:::::::::
2323

24-
输出 Tensor,indeces 矩阵选定的下标会被插入 value,与 ``arr`` 数据类型相同。
24+
输出 Tensor,indices 矩阵选定的下标会被插入 value,与 ``arr`` 数据类型相同。
2525

2626
代码示例
2727
:::::::::

docs/api/paddle/sparse/nn/functional/subm_conv2d_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ subm_conv2d
3232
- stride (int|list|tuple, optional): 步长大小, 意味着卷积的步长。如果步长为 list/tuple, 它必须包含两个整数 (stride_height, stride_width)。否则, stride_height = stride_width = stride。stride 的默认值为 1。
3333
- padding (string|int|list|tuple, optional): 填充大小。它表示零填充在每个维度的两侧的数量。
3434
如果 'padding' 是字符串,则 'VALID' 或 'SAME' 是填充算法。
35-
如果填充大小是元组或列表,它可以有三种形式:'[pad_heigh, pad_width]' 或 '[pad_height_top, pad_height_bottom, pad_width_left, pad_width_right]'。
35+
如果填充大小是元组或列表,它可以有三种形式:'[pad_height, pad_width]' 或 '[pad_height_top, pad_height_bottom, pad_width_left, pad_width_right]'。
3636
当 'data_format' 为 'NHWC' 时, 'padding' 可以采用以下形式 '[[0,0], [pad_height_top, pad_height_bottom], [pad_width_left, pad_width_right], [0,0]]'。padding 的默认值为 0。
3737
- dilation (int|list|tuple, optional): 空洞大小。它表示内核点之间的间距。
3838
如果 dilation 是列表/元组,则它必须包含两个整数 (dilation_height、dilation_width)。

0 commit comments

Comments
 (0)