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

#### 函数功能

获取算子的类型。


#### 函数原型

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


#### 参数说明

无。


#### 返回值说明

算子的类型。


#### 约束说明

无。


#### 调用示例

```
// 假设已存在KernelContext *context
auto extend_context = reinterpret_cast<ExtendedKernelContext *>(context);
auto node_type = extend_context->GetNodeType();
```
