首页 > 分享 > 3 (dim 1) != 1

3 (dim 1) != 1

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

滚雪球~ 于 2021-12-13 23:55:26 发布

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

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

参考:https://stackoverflow.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 1234567

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

在这里插入图片描述
忘记返回了
在这里插入图片描述
记得返回值
在这里插入图片描述

相关知识

若有说明 int a[3][4] = {{1}, {2}, {3}}; 则a[1
第12周项目3(1)
【#韩国超1/3人口...
1*1*1= ?
狗狗水疗(1)(3)
蛇知识 (1)(3)
桌面宠物VB的实现代码
揭秘宠物博主 1/3
1至3个月小狗可以吃什么
【(1)豚鼠能吃什么?】(3)

网址: 3 (dim 1) != 1 https://m.mcbbbk.com/newsview858640.html

所属分类:萌宠日常
上一篇: 宠物小精灵阵容怎么选择 阵容搭配
下一篇: 以小狗形状组成的可爱宠物世界(小