aclTransTensorDescFormat
须知:本接口为预留接口,暂不支持。
产品支持情况
功能说明
按指定dstFormat转换源aclTensorDesc中的format,生成新的目标aclTensorDesc,源aclTensorDesc中的format保持不变。同步接口。
函数原型
aclError aclTransTensorDescFormat(const aclTensorDesc *srcDesc, aclFormat dstFormat, aclTensorDesc **dstDesc)
参数说明
|
需提前调用aclCreateTensorDesc接口创建aclTensorDesc类型。 |
||
|
需提前调用aclCreateTensorDesc接口创建aclTensorDesc类型。 |
返回值说明
返回0表示成功,返回其他值表示失败,请参见aclError。