Skip to content

Commit de289cb

Browse files
authored
[CodeStyle][Typos][G-[1-5],H-1,I-[1-9],K-1] Fix typos (#7579)
1 parent d77e6c4 commit de289cb

File tree

22 files changed

+63
-81
lines changed

22 files changed

+63
-81
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: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ Creenshot = "Creenshot"
3232
Embeddding = "Embeddding"
3333
Embeding = "Embeding"
3434
Engish = "Engish"
35-
Generater = "Generater"
36-
Gloabal = "Gloabal"
37-
Imporvement = "Imporvement"
38-
Interfce = "Interfce"
39-
Kernal = "Kernal"
4035
Learing = "Learing"
4136
Moible = "Moible"
4237
Operaton = "Operaton"
@@ -117,21 +112,8 @@ foward = "foward"
117112
functinal = "functinal"
118113
fundemental = "fundemental"
119114
funtion = "funtion"
120-
gard = "gard"
121-
generaly = "generaly"
122-
gloabl = "gloabl"
123-
heigh = "heigh"
124115
ilter = "ilter"
125-
imge = "imge"
126-
implememted = "implememted"
127-
indeces = "indeces"
128-
indentical = "indentical"
129-
indicies = "indicies"
130-
indx = "indx"
131-
infered = "infered"
132116
inferface = "inferface"
133-
infor = "infor"
134-
ingore = "ingore"
135117
instert = "instert"
136118
instrinsics = "instrinsics"
137119
interchangable = "interchangable"

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)。

docs/api/paddle/take_along_axis_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ take_along_axis
2323
返回
2424
:::::::::
2525

26-
输出 Tensor,包含 indeces 矩阵选定的元素,与 ``arr`` 数据类型相同。
26+
输出 Tensor,包含 indices 矩阵选定的元素,与 ``arr`` 数据类型相同。
2727

2828
代码示例
2929
:::::::::

docs/api/paddle/vision/ops/decode_jpeg_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ decode_jpeg
1919
返回
2020
:::::::::
2121

22-
具有形状(imge_channels、image_height、image_width)的解码图像 Tensor。
22+
具有形状(image_channels、image_height、image_width)的解码图像 Tensor。
2323

2424
代码示例
2525
:::::::::

docs/design/concepts/tensor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Before writing code, please make sure you already look through Majel Source Code
116116

117117

118118
### Memory Management
119-
`Allocation` manages a block of memory in device(CPU/GPU). We use `Place` to decribe memory location. The details of memory allocation and deallocation are implememted in `Allocator` and `DeAllocator`. Related low-level API such as `hl_malloc_device()` and `hl_malloc_host()` are provided by Paddle.
119+
`Allocation` manages a block of memory in device(CPU/GPU). We use `Place` to decribe memory location. The details of memory allocation and deallocation are implemented in `Allocator` and `DeAllocator`. Related low-level API such as `hl_malloc_device()` and `hl_malloc_host()` are provided by Paddle.
120120

121121
### Dim and Array
122122
#### Dim

0 commit comments

Comments
 (0)