提交 4b33d799 编写于 作者: R root

refine paddle.fluid.layers.transpose zh doc

上级 8fcd3596
......@@ -5,22 +5,22 @@ transpose
.. py:function:: paddle.fluid.layers.transpose(x,perm,name=None)
该OP根据perm对输入矩阵维度进行重排。返回张量(tensor)的第i维对应输入维度矩阵的perm[i]
该OP根据perm对输入的多维Tensor进行数据重排。返回多维Tensor的第i维对应输入Tensor的perm[i]维
参数:
- **x** (Variable) - 输入:x:[N_1, N_2, ..., N_k, D]多维Tensor。
- **perm** (list) - perm长度必须和X的维度相同,并依照perm中数据进行维度重排。
- **x** (Variable) - 输入:x:[N_1, N_2, ..., N_k, D]多维Tensor。
- **perm** (list) - perm长度必须和X的维度相同,并依照perm中数据进行重排。
- **name** (str) - 该层名称(可选)。
返回: 转置后的张量(Tensor)
返回: 多维Tensor
返回类型:变量(Variable)
返回类型:Variable
**示例**:
.. code-block:: python
x = [[[ 1 2 3 4] [ 5 6 7 8] [ 9 10 11 12]]
x = [[[ 1 2 3 4] [ 5 6 7 8] [ 9 10 11 12]]
[[13 14 15 16] [17 18 19 20] [21 22 23 24]]]
shape(x) = [2,3,4]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册