昇腾故障案例详情页

单算子匹配失败

2022/09/05

79

暂无评分

问题信息

问题来源产品大类产品子类关键字
官方模型推理应用开发AscendCL单算子、匹配、日志、MatchOpModel、match

问题现象描述

  • 业务场景:应用/算子开发
  • 适用处理器:昇腾310 AI处理器、昇腾310P AI处理器、昇腾910 AI处理器
  • 处理器形态:EP、RC
  • 问题现象:

    单算子执行过程中,出现匹配失败,日志显示如下类似信息。

    • 离线加载执行场景:
      EH9999 [Match][OpModel]failed to match model, opName = xxx Has not been compiled or loaded, Please make sure the op executed and the op compiled is matched, you can check the op type, op inputs number, outputs number, input format, origin format, datatype, memtype, attr, dim range, and so on.
    • 在线加载执行场景:
      EH9999 [Match][OpModel]MatchOpModel fail from static map or dynamic map. Please make sure the op executed and the op compiled is matched, you can check the op type, op inputs number, outputs number, input format, origin format, datatype, memtype, attr, dim range, and so on.

原因分析

  • 离线场景:算子om文件未出现在aclSetModelDir中指定的路径下。
  • 在线场景:一些特殊的匹配规则未适配,导致算子匹配失败。

解决措施

  • 离线场景:重新编译缺少的算子,并复制到aclSetModelDir中指定的路径下,余下步骤按离线单算子推理步骤进行。
  • 在线场景:根据报错信息检查前后两次编译的算子的opType、dataType、format等信息是否一致。

本页内容

该页面对您有帮助吗?
我要评分