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

#### 产品支持情况

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


#### 函数功能

用户自定义flow func的处理函数。


#### 函数原型

```
int32_t Proc(const std::vector<std::shared_ptr<FlowMsg>> &inputMsgs)
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| inputMsgs | 输入 | 算子的输入参数列表。 |


#### 返回值

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


#### 异常处理

如果有不可恢复的异常信息发生，返回ERROR；其他情况则调用SetRetcode设置输出tensor的错误码。如果返回SUCCESS，调度会终止。


#### 约束说明

无。
