未验证 提交 a8532f1a 编写于 作者: T Tao Luo 提交者: GitHub

Merge pull request #13918 from guoshengCS/fix-transpose-doc

Fix the example in the doc of transpose_op
...@@ -4472,7 +4472,10 @@ def transpose(x, perm, name=None): ...@@ -4472,7 +4472,10 @@ def transpose(x, perm, name=None):
Examples: Examples:
.. code-block:: python .. code-block:: python
x = fluid.layers.data(name='x', shape=[5, 10, 15], dtype='float32') # use append_batch_size=False to avoid prepending extra
# batch size in shape
x = fluid.layers.data(name='x', shape=[5, 10, 15],
dtype='float32', append_batch_size=False)
x_transposed = layers.transpose(x, perm=[1, 0, 2]) x_transposed = layers.transpose(x, perm=[1, 0, 2])
""" """
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册