文档
注册

函数:update_params

C函数原型

aclError aclopUpdateParams(const char *opType,

int numInputs,

const aclTensorDesc *const inputDesc[],

int numOutputs,

const aclTensorDesc *const outputDesc[],

const aclopAttr *attr)

Python函数

ret = acl.op.update_params(op_type, input_desc, output_desc, attr)

函数功能

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

输入说明

op_type:str,算子类型名称。

input_desc:list,算子输入tensor的描述。

output_desc:list,算子输出tensor的描述。

attr:int,算子属性。

返回值说明

ret:int,错误码。

  • 返回0表示成功。
  • 返回其它值表示失败。

约束说明

参考资源

接口调用流程及示例,参见动态Shape算子(注册算子选择器)

搜索结果
找到“0”个结果

当前产品无相关内容

未找到相关内容,请尝试其他搜索词