Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api/paddle/nn/functional/affine_grid_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ affine_grid

返回
::::::::::::
Tensor。Shape 为 ``[N, H, W, 2]`` 的 4-D Tensor 或``[N, D, H, W, 3]``的 5-D Tensor,表示仿射变换前后的坐标的映射关系。输出为 4-D Tensor 时,N、H、W 分别为仿射变换中输出 feature map 的 batch size、高和宽,输出为 5D Tensor 时,N、D、H、W 分别为仿射变换中输出 feature map 的 batch size、深度、高和宽。数据类型与 ``theta`` 一致。
Tensor。Shape 为 ``[N, H, W, 2]`` 的 4-D Tensor 或 ``[N, D, H, W, 3]`` 的 5-D Tensor,表示仿射变换前后的坐标的映射关系。输出为 4-D Tensor 时,N、H、W 分别为仿射变换中输出 feature map 的 batch size、高和宽,输出为 5D Tensor 时,N、D、H、W 分别为仿射变换中输出 feature map 的 batch size、深度、高和宽。数据类型与 ``theta`` 一致。


代码示例
Expand Down
2 changes: 1 addition & 1 deletion docs/api/paddle/static/nn/while_loop_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ____________________________________
:::::::::

- **cond** (callable) - 返回 boolean 类型 Tensor 的可调用函数,用以判断循环是否继续执行。``cond`` 的参数和 ``loop_vars`` 相对应。
- **body** (callable) - 循环执行的结构体。其返回一个包含 tensor 或 DenseTensorArray 的列表或元组,且这些 tensor 或 DenseTensorArray 的长度,结构,类型和 ``loop_vars`` 中的相同。且``body`` 的参数与 ``loop_vars`` 相对应。
- **body** (callable) - 循环执行的结构体。其返回一个包含 tensor 或 DenseTensorArray 的列表或元组,且这些 tensor 或 DenseTensorArray 的长度,结构,类型和 ``loop_vars`` 中的相同。且 ``body`` 的参数与 ``loop_vars`` 相对应。
- **loop_vars** (list|tuple) - 包含 tensor 或 DenseTensorArray 的列表或是元组,将其传入至 ``cond`` 和 ``body`` 中,得到循环条件和输出值。
- **is_test** (bool,可选) - 用于表明是否在测试阶段执行,默认值为 False。
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
Expand Down