diff --git a/develop/doc/api/v2/fluid/layers.html b/develop/doc/api/v2/fluid/layers.html index 4b9adbbce5f779b437c36dc710d805239f32f5ea..4796a3dbe647c4a24f8ad538f968d81d93786e64 100644 --- a/develop/doc/api/v2/fluid/layers.html +++ b/develop/doc/api/v2/fluid/layers.html @@ -719,18 +719,29 @@ Duplicable: False Optional: False
Transpose Operator.
The input tensor will be permuted according to the axis values given. The op functions is similar to how numpy.transpose works in python.
-For example: input = numpy.arange(6).reshape((2,3)) -the input is: -array([[0, 1, 2],
+For example:
--[3, 4, 5]])
given axis is: [1, 0]
-output = input.transpose(axis) +
input = numpy.arange(6).reshape((2,3))
+
+the input is:
+
+array([[0, 1, 2],
+ [3, 4, 5]])
+
+given axis is:
+
+[1, 0]
+
+output = input.transpose(axis)
+
then the output is:
-array([[0, 3],
-
-[1, 4],
-[2, 5]])
+
+array([[0, 3],
+ [1, 4],
+ [2, 5]])
+
So, given a input tensor of shape(N, C, H, W) and the axis is {0, 2, 3, 1}, the output tensor shape will be (N, H, W, C)