---
title: AddInvokedClosure (添加调用的ProcessPoint子类)
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/dataflowdevg/dfrefc_23_0040.html
sourcePath: /source/zh/canncommercial/900/others/dataflowdevg/dfrefc_23_0040.html
indexId: 4c4390f1b91120f455bbef88a5971375077e17f3d4050eff4f04d059febbeb7469
---
# AddInvokedClosure (添加调用的ProcessPoint子类)

#### 产品支持情况

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


#### 函数功能

添加FunctionPp调用的GraphPp/FlowGraphPp，返回添加好的FunctionPp。


#### 函数原型

```
FunctionPp &AddInvokedClosure(const char_t *name, const ProcessPoint &pp)
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| name | 输入 | 调用的GraphPp/FlowGraphPp的唯一标识，需要全图唯一。 |
| pp | 输入 | 调用的GraphPp/FlowGraphPp |


#### 返回值

返回设置好的FunctionPp。


#### 异常处理

无。


#### 约束说明

无。
