mat1 and mat2 shapes cannot be multiplied (64x1800 and 20x100)
时间: 2024-01-22 16:05:15 浏览: 22
This error message is typically encountered when attempting to multiply two matrices that do not have compatible dimensions. Specifically, the number of columns in the first matrix must match the number of rows in the second matrix.
In your case, it looks like you are attempting to multiply a matrix with shape (64, 1800) by a matrix with shape (20, 100). Since the number of columns in the first matrix (1800) does not match the number of rows in the second matrix (20), it is not possible to perform matrix multiplication between these two matrices.
To resolve this issue, you may need to transpose one of the matrices, or reshape them so that their dimensions are compatible for matrix multiplication.