FunctionRacerProblemsRace

Matrix Times Matrix

EasyPyTorchPython

Return the matrix product of the 2-D tensors a and b: the entry in row i and column j is the dot product of row i of a with column j of b.

Example 1

a [[1.0,2.0],[3.0,4.0]]
b [[5.0,6.0],[7.0,8.0]]
returns [[19.0,22.0],[43.0,50.0]]

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More PyTorch problems