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

#### 产品支持情况

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


#### 功能说明

动态Shape场景下，设置算子Tiling参数、执行并发数。


#### 函数原型

- C函数原型
  1 2 3 4 5 6 aclError aclopUpdateParams(const char *opType, int numInputs, const aclTensorDesc *const inputDesc[], int numOutputs, const aclTensorDesc *const outputDesc[], const aclopAttr *attr)

- python函数
  1 ret = acl.op.update_params(op_type, input_desc, output_desc, attr)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| op\_type | str，算子类型名称。 |
| input\_desc | list，算子输入Tensor的描述。 |
| output\_desc | list，算子输出Tensor的描述。 |
| attr | int，算子属性。 |


#### 返回值说明

| 返回值 | 说明 |
| --- | --- |
| ret | int，错误码，返回0表示成功，返回其它值表示失败。 |
