diff --git "a/AscendPytorch\346\250\241\345\236\213\344\274\227\346\231\272FAQ.md" "b/AscendPytorch\346\250\241\345\236\213\344\274\227\346\231\272FAQ.md" index 41c096996235e52cf3357d26e76bf2098806c8a1..ca00aaddb08c128860fcdfe7ce82925de703b38d 100644 --- "a/AscendPytorch\346\250\241\345\236\213\344\274\227\346\231\272FAQ.md" +++ "b/AscendPytorch\346\250\241\345\236\213\344\274\227\346\231\272FAQ.md" @@ -533,6 +533,21 @@ StopIteration 3)对于前两种办法都无法安装的包,那只能使用源码安装了,目前像 kaldi,xtcocotools 这类包需要使用gitee或者github上共享的源码,根据他的readme来编译安装。 +### FAQ28、npu上训练时broadcast_to_d算子报错:npu error + +* 现象描述 + +![](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/raw/master/figures/model_faq1_2801.png) + +* 原因分析 + + 打印输入的数据类型发现是int64,进入到/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/opp/op_impl/built-in/ai_core/tbe/config/ascend910目录查看算子信息库aic-ascend910-ops-info.json文件,找到对应算子,发现其不支持int64类型输入 + +* 处理方法 + + 把输入的数据类型int64转换为int32,问题得到解决。 + + ## [2.2 NPU模型分布式运行常见问题FAQ](#22-NPU模型分布式运行常见问题FAQ) diff --git a/figures/model_faq1_2801.png b/figures/model_faq1_2801.png new file mode 100644 index 0000000000000000000000000000000000000000..b9839949628768707c74c6d35f785356beb90a16 Binary files /dev/null and b/figures/model_faq1_2801.png differ