---
title: 函数：create_aipp
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/aclpythondevg_01_0169.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/aclpythondevg_01_0169.html
indexId: b8fa10a2f93da92aadeea68878e5f1a57b51d3acf2f2797b46dd0ee1338e960975
---
# 函数：create_aipp

#### 产品支持情况

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


#### 功能说明

动态AIPP场景下，根据模型支持的batch size创建aclmdlAIPP类型的数据，用于存放动态AIPP的参数。

如需销毁aclmdlAIPP类型的数据，请参见函数：destroy_aipp。


#### 函数原型

- C函数原型
  1 aclmdlAIPP *aclmdlCreateAIPP(uint64_t batchSize)

- python函数
  1 aipp_ptr = acl.mdl.create_aipp(batch_size)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| batch\_size | int，模型的Batch数。 |


#### 返回值说明

| 返回值 | 说明 |
| --- | --- |
| aipp\_ptr | int，aclmdlAIPP类型数据对象地址。 |
