---
title: GetOmOptype
description: "获取模型的算子类型。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/basicdataapi/atlasopapi_07_00399.html
sourcePath: /source/zh/canncommercial/900/maintenref/basicdataapi/atlasopapi_07_00399.html
indexId: c69dc52a6cfffc06048e9bea8d9ad2e5736d6a3060fb211b73f5dada50139c7778
---
# GetOmOptype

#### 函数功能

获取模型的算子类型。


#### 函数原型

数据类型为string的接口后续版本会废弃，建议使用数据类型为非string的接口。


```
std::string GetOmOptype () const
Status GetOmOptype(ge::AscendString &om_op_type) const
```


#### 参数说明

| 参数 | 输入/输出 | 说明 |
| --- | --- | --- |
| om\_op\_type | 输出 | 模型的算子类型。 |


#### 约束说明

无。
