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

#### 函数功能

获取算子的类型。


#### 函数原型

```
const ge::char_t *GetNodeType() const
```


#### 参数说明

无。


#### 返回值说明

算子的类型。


#### 约束说明

无。


#### 调用示例

```
auto node_type = compute_node_info.GetNodeType();
```
