Skip to content

Commit 635d798

Browse files
Noai-ossCopilot
authored andcommitted
Fix punctuation and typo issues in API docs
- floor_cn.rst: Replace English commas with Chinese enumeration marks (、) in data type list - fft/irfft_cn.rst: Replace English commas with Chinese enumeration marks (、) in norm values list - full_cn.rst: Fix typo 'dytpe' -> 'dtype' Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 25412ad commit 635d798

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/api/paddle/fft/irfft_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ irfft
1515
- **x** (Tensor) - 输入数据,其数据类型为复数。
1616
- **n** (int,可选) - 输出 Tensor 在傅里叶变换轴的长度。输入 Tensor 在该轴的长度必须为 ``n//2+1`` ,如果输入 Tensor 的长度大于 ``n//2+1`` ,输入 Tensor 会被截断。如果输入 Tensor 的长度小于 ``n//2+1`` ,则输入 Tensor 会被补零。如果 ``n`` 没有被指定,则取 ``2*(m-1)`` ,其中, ``m`` 是输入 Tensor 在 ``axis`` 维的长度。
1717
- **axis** (int,可选) - 傅里叶变换的轴。如果没有指定,默认是使用最后一维。
18-
- **norm** (str,可选) - 傅里叶变换的缩放模式,缩放系数由变换的方向和缩放模式同时决定。取值必须是 "forward", "backward", "ortho" 之一,默认值为 "backward"。三种缩放模式对应的行为如下:
18+
- **norm** (str,可选) - 傅里叶变换的缩放模式,缩放系数由变换的方向和缩放模式同时决定。取值必须是 "forward""backward""ortho" 之一,默认值为 "backward"。三种缩放模式对应的行为如下:
1919

2020
- "backward":正向和逆向变换的缩放系数分别为 ``1`` 和 ``1/n`` ;
2121
- "forward":正向和逆向变换的缩放系数分别为 ``1/n`` 和 ``1`` ;

docs/api/paddle/floor_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ floor
1616
参数
1717
::::::::::::
1818

19-
- **x** - 输入为多维 Tensor。数据类型支持 float32, float64, float16, bfloat16, uint8, int8, int16, int32, int64。别名 ``input``。
19+
- **x** - 输入为多维 Tensor。数据类型支持 float32float64float16bfloat16uint8int8int16int32int64。别名 ``input``。
2020
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
2121

2222
关键字参数

docs/api/paddle/full_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ full
2121
如果 ``shape`` 是 \*shape,则可以直接以可变参数的形式传入多个整数(例如 ``randn(2, 3)``)。
2222
该参数的别名为 ``size``。
2323
- **fill_value** (bool|float|int|Tensor) - 用于初始化输出 Tensor 的常量数据的值。如果 fill_value 是一个 Tensor ,它应该是一个表示标量的 0-D Tensor。注意:该参数不可超过输出变量数据类型的表示范围。
24-
- **dtype** (str|paddle.dtype|np.dtype,可选)- 输出变量的数据类型,可以是 float16、float32、float64、int32、int64。如果 dytpe 为 None,则创建的 Tensor 的数据类型为 float32。默认值为 None。
24+
- **dtype** (str|paddle.dtype|np.dtype,可选)- 输出变量的数据类型,可以是 float16、float32、float64、int32、int64。如果 dtype 为 None,则创建的 Tensor 的数据类型为 float32。默认值为 None。
2525
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
2626

2727
关键字参数

0 commit comments

Comments
 (0)