mat1 and mat2 shapes cannot be multiplied (64x9216 and 6400x4096)
时间: 2024-01-22 15:04:31 浏览: 29
The error message "mat1 and mat2 shapes cannot be multiplied (64x9216 and 6400x4096)" indicates that you are trying to perform matrix multiplication between two matrices that do not have compatible shapes. In matrix multiplication, the number of columns in the first matrix must equal the number of rows in the second matrix.
In your case, you have a matrix of size 64x9216 and a matrix of size 6400x4096. To perform matrix multiplication between these two matrices, the number of columns in the first matrix (9216) must equal the number of rows in the second matrix (6400), which is not the case here.
To fix this error, you need to either change the shape of one of the matrices or change your matrix multiplication operation.