文档
注册

函数:create_handle_for_cast

C函数原型

aclError aclopCreateHandleForCast(const aclTensorDesc *srcDesc, const aclTensorDesc *dstDesc, uint8_t truncate, aclopHandle **handle)

Python函数

handle, ret = acl.op.create_handle_for_cast(src_desc, dst_desc, truncate)

函数功能

创建数据类型转换的handle,同步接口。

创建handle成功后,需调用acl.op.execute_with_handle接口执行算子。

输入说明

src_desc:int,输入tensor描述指针地址。

dst_desc:int,输出tensor描述指针地址。

truncate:预留。

返回值说明

handle:int,输出的handle的指针地址。

ret:int,错误码。

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

约束说明

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

当前产品无相关内容

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