Replies: 1 comment
-
3 dimension tensors is a collection of 2 dimension tensors. So for 2 dimension tensors we check the inner dimensions to be same. Similarly for 3 dimension, first check inner dimension of 2d tensors contained in it satisfy matrix multiplication criteria. Then the outer dimension of 3D tensor should be same in both the tensors which we are gonna multiply. |
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 understand how the matrix multiplication for tensors which has dimensions 1 and 2 work. But as I was playing with the tensors whose dimensions are above 2 (Let's assume the dimension is 3). How do I check if the inner dimensions matches in this case?
For instance: Let's say we are trying to multiply the tensors mentioned below in code
How do I know if I can perform matrix multiplication or not in this case?
Beta Was this translation helpful? Give feedback.
All reactions