Skip to content

Commit e3831e6

Browse files
committed
Merge branch 'master' of github.com:pytorch/tutorials into wwen/torch-compile-benchmark-update
2 parents a10d669 + a46de9b commit e3831e6

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)