TypeError: mindspore/core/abstract/prim others.cc:297 InferImplMakeRowTensor 网络前向编译过程中出现参数不匹配
收藏回复举报
TypeError: mindspore/core/abstract/prim others.cc:297 InferImplMakeRowTensor 网络前向编译过程中出现参数不匹配
t('forum.solved') 已解决
新人帖
发表于2023-05-20 15:33:10
0 查看

训练环境:ModelArts EulerOS 2.0 (SP8), CANN-5.1.RC1.1

MindSpore版本:1.8.0

NPU

python3.7.10

在对模型进行动态图编译过程中报错TypeError: mindspore/core/abstract/prim others.cc:297 InferImplMakeRowTensor.The first dimension of indices must be the same with the first dimension of values 128, but got -1,根据报错信息未能定位问题所在,通过查看analyze_fail.dat文件可以发现可能是在EmbeddingLookUp算子调用过程中出错,具体原因无法判断

代码地址:https://gitee.com/zrler/GraphSAIL/tree/master

cke_14805.pngcke_15018.png

我要发帖子