Matrix Times Matrix
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
ahas as many columns asbhas rows- No dimension is larger than 4
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More PyTorch problems
- One HotEasy
- Only the PositivesEasy
- Rows That Sum to OneEasy
- Stack the RowsEasy
- The First GradientEasy
- The k LargestEasy
- A Moving AverageMedium
- Count the ParametersMedium