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
Hints
matmul
linear-algebra
torch.matmul
jnp.matmul
Sign in to attempt this problem and view the solution.