---
title: 单算子匹配失败-昇腾社区
description: 单算子执行过程中，出现匹配失败，日志显示如下类似信息。
keywords: 单算子;匹配;日志;MatchOpModel;match
url: https://www.hiascend.com/document/caselibrary/detail/topic_0000001372447293-E5jNFTTd
section: (其他)
---

# 单算子匹配失败-昇腾社区

URL: https://www.hiascend.com/document/caselibrary/detail/topic_0000001372447293-E5jNFTTd
描述: 单算子执行过程中，出现匹配失败，日志显示如下类似信息。
关键词: 单算子;匹配;日志;MatchOpModel;match

昇腾文档 [了解详情](https://www.hiascend.com/document)

故障案例 [了解详情](https://www.hiascend.com/document/caselibrary)

单算子匹配失败

单算子匹配失败

2022/09/05

811

问题信息

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

#### 问题现象描述

- 业务场景：应用/算子开发
- 适用处理器：Atlas 200/300/500 推理产品、Atlas 推理系列产品、Atlas 训练系列产品
- 处理器形态：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等信息是否一致。

本页内容

- 问题信息
- 问题现象描述
- 原因分析
- 解决措施
