函数:execute_with_handle
产品支持情况
产品  | 
是否支持  | 
|---|---|
√  | 
|
√  | 
|
√  | 
|
√  | 
|
√  | 
|
√  | 
使用说明
C函数原型  | 
aclError aclopExecWithHandle(aclopHandle *handle, int numInputs, const aclDataBuffer *const inputs[], int numOutputs, aclDataBuffer *const outputs[], aclrtStream stream);  | 
|---|---|
Python函数  | 
ret = acl.op.execute_with_handle(handle, inputs,outputs, stream)  | 
函数功能  | 
以Handle方式调用一个算子,不支持动态Shape算子,动态Shape算子请使用acl.op.execute_v2。异步接口。  | 
输入说明  | 
handle:int,指定执行算子的handle,指针地址。 需提前调用acl.op.create_handle接口创建aclopHandle类型的数据。 inputs:list,算子输入Tensor, 整形列表,包含多个aclDataBuffer数据地址对象。 需提前调用acl.create_data_buffer接口创建aclDataBuffer类型的数据。 outputs:list,算子输出Tensor,整形列表,包含多个aclDataBuffer数据地址对象。 需提前调用acl.create_data_buffer接口创建aclDataBuffer类型的数据。 stream:int,执行算子所在的Stream,stream地址对象。  | 
返回值说明  | 
ret:int,错误码。 
  | 
约束说明  | 
 
  |