Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The ValueError with the message "matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?)" means that the matrix multiplication operation (matmul) is being performed on two matrices where the size of the first matrix's first dimension does not match the size of the second matrix's second dimension.

When the size is 9 instead of 10, it means that one of the matrices has 9 rows or columns instead of 10. This results in a dimension mismatch error because for matrix multiplication, the number of columns in the first matrix needs to match the number of rows in the second matrix. In this case, the operation cannot be performed because one of the matrices does not have the required number of rows or columns.