Skip to content

Commit 849777d

Browse files
committed
update No.39-44
1 parent ec2e674 commit 849777d

6 files changed

+6
-6
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_pool_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sequence_pool
99
1010
1111
.. note::
12-
该 API 的输入只能是带有 LoD 信息的 Tensor,如果您需要处理的输入是 Tensor 类型,请使用 :ref:`paddle.nn.functional.avg_pool2d <cn_api_paddle_nn_functional_avg_pool2d>` 或 :ref:`paddle.nn.functional.max_pool2d <cn_api_paddle_nn_functional_max_pool2d>` 。
12+
该 API 的输入只能是带有 LoD 信息的 Tensor,如果您需要处理的输入是 Tensor 类型,请使用 :ref:`paddle.nn.functional.avg_pool2d <cn_api_paddle_nn_functional_avg_pool2d>` 或 :ref:`paddle.nn.functional.max_pool2d <cn_api_paddle_nn_functional_max_pool2d>` 。
1313

1414
对输入的 Tensor 进行指定方式的池化(pooling)操作。通过指定 pool_type 参数,将输入的每个序列(sequence)在最后一层 lod_level 上或时间步(time-step)上对特征进行诸如 sum、average、sqrt 等池化操作。
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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sparse_embedding
1414
输出的 Tensor 的 shape 是将输入 Tensor shape 的会在输出的 embedding 最后追加一维 emb_size。
1515

1616
.. note::
17-
input 中的 id 必须满足 ``0 =< id < size[0]``,否则程序会抛异常退出。
17+
input 中的 id 必须满足 ``0 =< id < size[0]``,否则程序会抛异常退出。
1818

1919

2020
::

0 commit comments

Comments
 (0)