[CRITICAL] CORE(2548416,7fd1739f9740,python):2022-08-05-22:05:45.664.672 [build/mindspore/merge/mindspore/core/ops_merge.cc:1036] AddNInferShape] The primitive[AddN]'s input shape must be same, but got the shape of input[1]: (112, 112), shape of input[0]:(3, 112, 112)

报错中指明了出错的原因:input的两个元素的shape不一样,一个是(112, 112), 一个是(3, 112, 112)。mindspore.ops.addn(input)必须保证input的所有元素的shape是一致的。

Logo

昇腾计算产业是基于昇腾系列(HUAWEI Ascend)处理器和基础软件构建的全栈 AI计算基础设施、行业应用及服务,https://devpress.csdn.net/organization/setting/general/146749包括昇腾系列处理器、系列硬件、CANN、AI计算框架、应用使能、开发工具链、管理运维工具、行业应用及服务等全产业链

更多推荐