We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Easy
Framework
Matrix Multiplication
Multiply two matrices using the framework’s built-in matrix multiplication.
Input:
-
A: A 2D tensor of shape(m, k) -
B: A 2D tensor of shape(k, n)
Output: A 2D tensor of shape (m, n) equal to A @ B.
API Reference:
-
PyTorch:
torch.matmul(A, B)orA @ B -
JAX:
jnp.matmul(A, B)orA @ B
Nothing accepted yet. When a submission passes, the code that passed shows up
here, one entry per mode.
Stuck?
PyTorch reference solution
Sign in to attempt this problem and reveal the reference solution.