---
title: 简介
description: "算子注册接口，注册一个算子原型，此接口被其他头文件引用，一般不由算子开发者直接调用。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/atlasgeapi_07_0672.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0672.html
indexId: f2ac3d7ffb77270e8f8dbc89009f70286a2a27d6ce2cc94f5c4a0936b8ee5f5072
---
# 简介

算子注册接口，注册一个算子原型，此接口被其他头文件引用，一般不由算子开发者直接调用。

#### 需要包含的头文件

```
#include <graph/operator_factory.h>
```


#### Public成员函数

```
OperatorCreatorRegister(const std::string &operator_type, OpCreator const &op_creator)
OperatorCreatorRegister(const char_t *const operator_type, OpCreatorV2 const &op_creator)
~
OperatorCreatorRegister() = default
```
