From 3d38d704918c5184f62db2c49f88bf3a833ae360 Mon Sep 17 00:00:00 2001 From: Suraj Subramanian <5676233+suraj813@users.noreply.github.com> Date: Mon, 28 Nov 2022 16:58:08 -0500 Subject: [PATCH] Update tensorqs_tutorial.py fixes #1659 --- beginner_source/basics/tensorqs_tutorial.py | 1 + 1 file changed, 1 insertion(+) 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)