首页 PaddleOCR 帖子详情
广播维度出错是怎么回事
收藏
快速回复
PaddleOCR 问答OCR 1725 3
广播维度出错是怎么回事
收藏
快速回复
PaddleOCR 问答OCR 1725 3

InvalidArgumentError: Broadcast dimension mismatch. Operands could not be broadcast together with the shape of X = [2, 96, 3, 12] and the shape of Y = [2, 96, 4, 12]. Received [3] in X is not equal to [4] in Y at i:2.

[Hint: Expected x_dims_array[i] == y_dims_array[i] || x_dims_array[i] <= 1 || y_dims_array[i] <= 1 == true, but received x_dims_array[i] == y_dims_array[i] || x_dims_array[i] <= 1 || y_dims_array[i] <= 1:0 != true:1.] (at C:\home\workspace\Paddle_release2\paddle/fluid/operators/elementwise/elementwise_op_function.h:169)
[operator < elementwise_add > error]

以上错误应该怎么应对呢

0
收藏
回复
全部评论(3)
时间顺序
FutureSI
#2 回复于2021-08

参考文档:

https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/01_paddle2.0_introduction/basic_concept/broadcasting_cn.html#broadcasting

0
回复
长汀泽野
#3 回复于2023-07
参考文档: https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/01_paddle2.0_introduction/basic_concept/broadcasting_cn.html#broadcasting
展开

有关这问题,能看出个啥?

1
回复
ZZZZZZLLLLLLLQ
#4 回复于2024-05

你好,你解决了吗

 

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户