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

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

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

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


#### Public成员函数

```
InferFormatFuncRegister(const std::string &operator_type, const InferFormatFunc &infer_format_func)
InferFormatFuncRegister(const char_t *const operator_type, const InferFormatFunc &infer_format_func)
~
InferFormatFuncRegister() = default
```
