Skip to content

Commit 3fbc05f

Browse files
ooooo-createNoai-ossCopilot
authored
[Docs] Fix Chinese punctuation and typo in API docs (dot, divide, dsplit) (#7798)
Co-authored-by: cutetocute <jiuwoxiao@outlook.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c741a3e commit 3fbc05f

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/api/paddle/divide_cn.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ divide
88
逐元素相除算子,输入 ``x`` 与输入 ``y`` 逐元素相除,并将各个位置的输出元素保存到返回结果中。
99

1010
.. note::
11-
别名支持: 参数名 ``input`` 可替代 ``x``,参数名 ``other`` 可替代 ``y`` ,如 ``divide(input=tensor_x, other=tensor_y, ...)`` 等价于 ``divide(x=tensor_x, y=tensor_y, ...)`` 。
12-
输入 ``x`` 与输入 ``y`` 必须和广播为相同形状,关于广播规则,请参见 `Tensor 介绍`_ .
11+
别名支持参数名 ``input`` 可替代 ``x``,参数名 ``other`` 可替代 ``y`` ,如 ``divide(input=tensor_x, other=tensor_y, ...)`` 等价于 ``divide(x=tensor_x, y=tensor_y, ...)`` 。
12+
输入 ``x`` 与输入 ``y`` 必须和广播为相同形状,关于广播规则,请参见 `Tensor 介绍`_
1313

1414
.. _Tensor 介绍: ../../guides/beginner/tensor_cn.html#id7
1515

docs/api/paddle/dot_cn.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dot
1313
支持 1 维和 2 维 Tensor。如果是 2 维 Tensor,矩阵的第一个维度是 batch_size,将会在多个样本上进行点积计算。
1414

1515
.. note::
16-
别名支持: 参数名 ``input`` 可替代 ``x``, ``tensor`` 可替代 ``y``。
16+
别名支持参数名 ``input`` 可替代 ``x``, ``tensor`` 可替代 ``y``。
1717

1818
参数
1919
:::::::::
@@ -27,7 +27,7 @@ dot
2727
关键字参数
2828
:::::::::
2929

30-
- **out** (Tensor,可选) - 指定输出结果的 `Tensor`,默认值为 None。
30+
- **out** (Tensor,可选) - 指定输出结果的 ``Tensor``,默认值为 None。
3131

3232
返回
3333
:::::::::

docs/api/paddle/dsplit_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dsplit
1111
.. note::
1212
请确保使用 ``paddle.dsplit`` 进行变换的 Tensor 维度数量不少于 3。
1313

14-
如下图,Tenser ``x`` 的 shape 为[4, 4, 4],经过 ``paddle.dsplit(x, num_or_indices=2)`` 变换后,得到 ``out0`` 和 ``out1`` 两个 shape 均为[4, 4, 2]的子 Tensor :
14+
如下图,Tensor ``x`` 的 shape 为[4, 4, 4],经过 ``paddle.dsplit(x, num_or_indices=2)`` 变换后,得到 ``out0`` 和 ``out1`` 两个 shape 均为[4, 4, 2]的子 Tensor
1515

1616
.. image:: ../../images/api_legend/dsplit/dsplit.png
1717
:alt: dsplit 图例

0 commit comments

Comments
 (0)