---
title: RegisterFlowFunc
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/dataflowdevg/udfrefc_23_00074.html
sourcePath: /source/zh/canncommercial/900/others/dataflowdevg/udfrefc_23_00074.html
indexId: 01104ca0f0a2f103fc0ac12b5f8d4d1268373488fb3fd721e86c61267f4fb89371
---
# RegisterFlowFunc

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | x |
| Atlas 推理系列产品 | x |
| Atlas 训练系列产品 | x |


#### 函数功能

注册flow func。

不建议直接使用该函数，建议使用MetaFlowFunc注册函数宏来注册flow func。


#### 函数原型

```
FLOW_FUNC_VISIBILITY bool RegisterFlowFunc(const char *flowFuncName, const FLOW_FUNC_CREATOR_FUNC &func) noexcept
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| flowFuncName | 输入 | flow func的名称。不可以设置为NULL，必须以“\0”结尾。 |
| func | 输入 | flow func的创建函数。 |


#### 返回值

- true
- false


#### 异常处理

无。


#### 约束说明

无。
