Skip to content

Commit efb5e61

Browse files
authored
[Docathon][Fix note No.39,41-43] (#7153)
* update No.39-44 * fix code style * fix code style
1 parent 2dd5748 commit efb5e61

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/api/paddle/static/nn/sequence_pad_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sequence_pad
99
序列填充操作符(Sequence Pad Operator),该 OP 将同一 batch 中的序列填充到一个一致的长度(由 ``maxlen`` 指定)。填充的新元素的值具体由输入 ``pad_value`` 指定,并会添加到每一个序列的末尾,使得他们最终的长度保持一致。最后返回一个 Python tuple ``(Out, Length)``,其中 LodTensor ``Out`` 为填充后的序列,LodTensor ``Length`` 为填充前的原序列长度信息。
1010

1111
.. note::
12-
该 API 的输入 ``x`` 只能是带有 LoD 信息的 Tensor。
12+
该 API 的输入 ``x`` 只能是带有 LoD 信息的 Tensor。
1313

1414
范例如下:
1515

docs/api/paddle/static/nn/sequence_reshape_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sequence_reshape
88
99
1010
.. note::
11-
该 API 的输入只能是带有 LoD 信息的 Tensor,如果您需要处理的输入是 Tensor 类型,请使用 :ref:`paddle.reshape <cn_api_paddle_reshape>` 。
11+
该 API 的输入只能是带有 LoD 信息的 Tensor,如果您需要处理的输入是 Tensor 类型,请使用 :ref:`paddle.reshape <cn_api_paddle_reshape>` 。
1212

1313
在指定 ``new_dim`` 参数下,通过序列原始长度、和原始 shape 计算出新的 shape,以输出包含新维度(new_dim)下的 Tensor。目前仅支持 1-level Tensor,请确保(原长度*原维数)可以除以新的维数,且每个序列没有余数。
1414

docs/api/paddle/static/nn/sequence_reverse_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sequence_reverse
77
88
99
.. note::
10-
该 API 仅支持带有 LoD 信息的 Tensor。
10+
该 API 仅支持带有 LoD 信息的 Tensor。
1111

1212
输入的 Tensor,在每个序列(sequence)上进行反转。目前仅支持对 LoD 层次(LoD level)为 1 的 Tensor 进行反转。该 OP 在构建反向 :ref:`cn_api_paddle_nn_RNN` 网络时十分有用。
1313

docs/api/paddle/static/nn/sequence_slice_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sequence_slice
1111
从给定序列中截取子序列。截取依据为按照所给相对开始位置的 ``offset`` (偏移量)和子序列长度 ``length`` 来截取子序列。
1212

1313
.. note::
14-
该 API 输入只能是带有 LoD 信息的 Tensor,如果您需要处理的是 Tensor 类型,请使用 :ref:`paddle.slice <cn_api_paddle_slice>` 。
14+
该 API 输入只能是带有 LoD 信息的 Tensor,如果您需要处理的是 Tensor 类型,请使用 :ref:`paddle.slice <cn_api_paddle_slice>` 。
1515

1616
.. code-block:: text
1717

0 commit comments

Comments
 (0)