这个错误是因为矩阵乘法中的列与另一矩阵的行数不匹配,具体的做法就是改变其中的一个变量的行列。
出现了Expected object of scalar type Double but got scalar type Float for argument #2 'mat2' in call to _th_mm,应该是数据类型不匹配,改下数据类型为double。
完美解决
这个错误是因为矩阵乘法中的列与另一矩阵的行数不匹配,具体的做法就是改变其中的一个变量的行列。
出现了Expected object of scalar type Double but got scalar type Float for argument #2 'mat2' in call to _th_mm,应该是数据类型不匹配,改下数据类型为double。
完美解决