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

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

[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即可。

你可能感兴趣的:(AI与ML,json,java,前端)