torch.matmul()
Linear AlgebraMatrix multiplication. For 2D tensors, computes row x column dot products.
For each output cell [i,j]: take row i from A and column j from B, multiply them element-wise, and sum all the products.
Python
Shift+Enter to run
1
2
3
4
5
6
Step 0 / 0
Speed
Write Python code and press Shift+Enter or click "Run" to visualize.
Run the operation to see step-by-step explanation.