Skip to content

Commit a81c3c1

Browse files
[SCU][Docathon][Add API Legend No.34]Add legend for transpose API (#69413)
* Add English explanation * modify code * add __rand__ * cancel update * develop * recover * finish * Update python/paddle/tensor/manipulation.py --------- Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
1 parent a479bc4 commit a81c3c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python/paddle/tensor/manipulation.py

+6
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,12 @@ def transpose(
531531
The `i`-th dimension of the returned tensor will correspond to the
532532
perm[i]-th dimension of `input`.
533533
534+
The image illustrates the second example of the transpose operation.
535+
536+
.. image:: https://githubraw.cdn.bcebos.com/PaddlePaddle/docs/develop/docs/images/api_legend/transpose.png
537+
:width: 500
538+
:alt: legend of transpose API
539+
534540
Args:
535541
x (Tensor): The input Tensor. It is a N-D Tensor of data types bool, float32, float64, int32.
536542
perm (list|tuple): Permute the input according to the data of perm.

0 commit comments

Comments
 (0)