atc转换过程问题记录

  1. LD_LIBRARY_PATH地址设置.非root用户
. ${HOME}/Ascend/ascend-toolkit/set_env.sh
#若开发套件包Ascend-cann-toolkit在非昇腾设备上安装,则如下环境变量必须执行,用于设置动态链接库所在路径,否则无需执行
export LD_LIBRARY_PATH=${HOME}/Ascend/ascend-toolkit/latest/<arch>-linux/devlib:$LD_LIBRARY_PATH
  1. util-conv2d.py中from te.tvm.buffer_manager import get_buffer_manager错误,修改为from tbe.tvm.buffer_manager
    ~/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/impl/util/util_conv2d.py

  2. python module

[Pre-compile ~/Ascend/ascend-toolkit/8.0.RC3.alpha001/opp/built-in/op_impl/ai_core/tbe/impl/dynamic/equal.py failed with errormsg/stack: File "~/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/impl/dynamic/bias.py", line 18, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'

---2,3问题都归结为没有用对python的版本。python3.12有问题,python3.10可以。

posted @ 2024-08-15 08:07  zwlwf  阅读(11)  评论(0编辑  收藏  举报