MindSpore和tbe版本不匹配问题及解决

1. 问题描述

可以通过执行如下命令自检MindSpore和tbe版本是否匹配。

python -c "import mindspore;mindspore.set_context(device_target='Ascend');mindspore.run_check()"

执行完上面命令后,屏幕错误信息中显示类似"CPU"和"tbe"字眼。

2. 根因分析

大多数是因为当前虚拟环境的te版本和MindSpore、CANN包不匹配。

3. 解决方案

尝试卸载相关whl包,重装对应CANN路径下的whl包。

pip uninstall te hccl auto_tune schedule_search -y

pip install {CANN安装路径}/latest/aarch64-linux/lib64/*.whl