Message=mat1 and mat2 shapes cannot be multiplied 1x6 and 1x32 Source=CUsersLenovoDesktoppy_projectsData_base100Data_base100py StackTrace File CUsersLenovoDesktoppy_projectsData_base100Data_base100
Explanation:
The error message indicates that there is an issue with multiplying two matrices with incompatible shapes. Specifically, mat1 has a shape of 1x6 (one row and six columns), while mat2 has a shape of 1x32 (one row and 32 columns). In order to perform matrix multiplication, the number of columns in the first matrix must match the number of rows in the second matrix. Since the number of columns in mat1 (6) does not match the number of rows in mat2 (1), the multiplication cannot be performed, resulting in the error. This error occurred in the file "Data_base1.0.0.py" on line 28 within the function "myfunc". Additionally, the error was raised while the program was executing on line 89
原文地址: https://www.cveoy.top/t/topic/huc6 著作权归作者所有。请勿转载和采集!