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

Fix the example in the doc of transpose_op
fix_recordio_link
Tao Luo 7 years ago committed by GitHub
commit a8532f1a67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4472,7 +4472,10 @@ def transpose(x, perm, name=None):
Examples:
.. 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])
"""

Loading…
Cancel
Save