函数:create_handle_for_cast
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
函数原型
- C函数原型
1
aclError aclopCreateHandleForCast(const aclTensorDesc *srcDesc, const aclTensorDesc *dstDesc, uint8_t truncate, aclopHandle **handle)
- python函数
1
handle, ret = acl.op.create_handle_for_cast(src_desc, dst_desc, truncate)
参数说明
参数名 |
说明 |
---|---|
src_desc |
int,输入Tensor描述指针地址。 |
dst_desc |
int,输出Tensor描述指针地址。 |
truncate |
int,预留。 |
返回值说明
返回值 |
说明 |
---|---|
handle |
int,输出的handle的指针地址。 |
ret |
int,错误码,返回0表示成功,返回其它值表示失败。 |
父主题: CBLAS接口(blas)