diff --git a/beginner_source/basics/tensorqs_tutorial.py b/beginner_source/basics/tensorqs_tutorial.py index 351f33c14f1..30297211ee7 100644 --- a/beginner_source/basics/tensorqs_tutorial.py +++ b/beginner_source/basics/tensorqs_tutorial.py @@ -142,6 +142,7 @@ # **Arithmetic operations** # This computes the matrix multiplication between two tensors. y1, y2, y3 will have the same value +# ``tensor.T`` returns the transpose of a tensor y1 = tensor @ tensor.T y2 = tensor.matmul(tensor.T)