Hi, I had the error of mismatching the shape.
Inner dimensions have to be the same for dot product. It’s possible to dot 2 matrices of shapes (a, b) and (b, c) to get a result of shape (a, c). Please check your code.
(a, b)
(b, c)
(a, c)