role of "out" parameter in torch.matmul() #1114
Unanswered
sachinlodhi
asked this question in
Q&A
Replies: 1 comment
-
hi @sachinlodhi the "out" parameter specifies the tensor you want to store the result of the matrix multiplication. In the screenshot you posted, it would be save the matmul between tensor and tensor.T in y3. Instead of creating a new variable to hold the value of the matmul, you are doing it inline. I hope this helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was reading tensor tutorial:)
and found this optional parameter out in the torch.matmul(). Can please anyone tell what is the exact use of this parameter?
Beta Was this translation helpful? Give feedback.
All reactions