昇腾上执行模型推理报错 EZ9999 Cannot parse json for config file

文章描述了在使用Ascend工具进行模型推理时遇到的错误,涉及json文件解析失败,特别是transpose和concat操作的kernel。解决建议是检查并安装kernels包,确保执行sourceset_env.sh命令。
摘要由CSDN通过智能技术生成

执行模型推理有如下报错:

[2024-01-05 11:37:19,380][ WARN][modelbox_plugin.cc:195 ] create job /root/projects/model_infer/src/graph/model_infer.toml failed, Fault, build graph failed, please check graph config. -> open flowunit 'infer', type 'cpu' failed. -> infer@InferFlowUnit function open error: RuntimeError: call aclnnCat failed, detail:EZ9999: Inner Error!
EZ9999  Cannot parse json for config file [/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe//kernel/config/ascend910b/transpose.json].
        TraceBack (most recent call last):
        Failed to parse kernel in transpose.json.
        AclOpKernelInit failed opType
        Cannot parse json for config file [/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe//kernel/config/ascend910b/concat_d.json].
        Failed to parse kernel in concat_d.json.
        Op Transpose does not has any binary.
        Kernel Run failed. opType: 283, Transpose
        launch failed for Transpose, errno:561000.

可能是没安装kernels包,安装它,再执行source /usr/local/Ascend/ascend-toolkit/set_env.sh即可。

  • 7
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值