The addition of multi-dim matmul is missing an important dimensional check in the n-d x m-d case. As in the 2-D case, the final dimension of the left argument must match the next-to-last dimension of the right argument.
Activity
Adds a fix to ak.matmul multi-dim (#5027)