ValueError: shapes (3,3) and (0,) not aligned: 3 (dim 1)

ValueError: shapes (3,3) and (0,) not aligned: 3 (dim 1) != 0 (dim 0)

参考:https://*.com/questions/39608421/showing-valueerror-shapes-1-3-and-1-3-not-aligned-3-dim-1-1-dim-0

The column of the first matrix and the row of the second matrix should be equal and the order should be like this only

column of first matrix = row of second matrix
and do not follow the below step

row of first matrix  = column of second matrix
it will throw an error

发现两个矩阵乘的时候有个是空的

ValueError: shapes (3,3) and (0,) not aligned: 3 (dim 1)
忘记返回了
ValueError: shapes (3,3) and (0,) not aligned: 3 (dim 1)
记得返回值
ValueError: shapes (3,3) and (0,) not aligned: 3 (dim 1)

上一篇:Whitelabel Error Page -----This application has no explicit mapping for /error, so you are seeing th


下一篇:vue学习5-js表达式