文档
注册

函数: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方式调用一个算子,性能更优,异步接口。

输入说明

handle:int,指定执行算子的handle,地址对象。调用acl.op.create_handle接口创建的acl算子handle数据。

inputs:list,算子输入tensor, 整形列表,包含多个aclDataBuffer数据地址对象。

outputs:list,算子输出tensor,整形列表,包含多个aclDataBuffer数据地址对象。

stream:int,执行算子所在的Stream, stream地址对象。

返回值说明

ret:int,错误码。

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

约束说明

注意事项

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

当前产品无相关内容

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