榴莲树上种樱桃 2021-04-23 23:29 采纳率: 0%
浏览 40

python矩阵运算报错

python矩阵运算报错

RuntimeError: The size of tensor a (32) must match the size of tensor b (31) at non-singleton dimension 3

应该怎么改?

  • 写回答

2条回答 默认 最新

  • Lytofy-lyf 2021-04-24 09:43
    关注

    运算的矩阵大小不一样,你应该看一下shape

    评论

报告相同问题?