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

#### 产品支持情况

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


#### 函数功能

获取Flowfunc的输入个数。该函数供Init调用。


#### 函数原型

```
size_t GetInputNum() const
```


#### 参数说明

无


#### 返回值

返回Flowfunc的输入个数。


#### 异常处理

无。


#### 约束说明

无。
