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

#### 产品支持情况

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


#### 函数功能

用户自定义flow func的初始化函数。


#### 函数原型

```
int32_t Init(const std::shared_ptr<MetaParams> &params)
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| MetaParams | 输入 | 多func处理函数使用的参数信息。 |


#### 返回值

- 0：SUCCESS。
- other：FAILED，具体请参考  UDF错误码
。


#### 异常处理

无。


#### 约束说明

无。
