Skip to content

Commit a46de9b

Browse files
subramenSvetlana Karslioglu
and
Svetlana Karslioglu
authored
Update tensorqs_tutorial.py (#2130)
fixes #1659 Co-authored-by: Svetlana Karslioglu <svekars@fb.com>
1 parent 026a88e commit a46de9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

beginner_source/basics/tensorqs_tutorial.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
# **Arithmetic operations**
143143

144144
# This computes the matrix multiplication between two tensors. y1, y2, y3 will have the same value
145+
# ``tensor.T`` returns the transpose of a tensor
145146
y1 = tensor @ tensor.T
146147
y2 = tensor.matmul(tensor.T)
147148

0 commit comments

Comments
 (0)