aclTransTensorDescFormat
须知:本接口为预留接口,暂不支持。
产品支持情况
|
产品 |
是否支持 |
|---|---|
|
Atlas 350 加速卡 |
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
功能说明
按指定dstFormat转换源aclTensorDesc中的format,生成新的目标aclTensorDesc,源aclTensorDesc中的format保持不变。同步接口。
函数原型
1
|
aclError aclTransTensorDescFormat(const aclTensorDesc *srcDesc, aclFormat dstFormat, aclTensorDesc **dstDesc) |
参数说明
|
参数名 |
输入/输出 |
说明 |
|---|---|---|
|
srcDesc |
输入 |
源aclTensorDesc数据的指针。 需提前调用aclCreateTensorDesc接口创建aclTensorDesc类型。 |
|
dstFormat |
输入 |
|
|
dstDesc |
输出 |
“目标aclTensorDesc数据指针”的指针。 需提前调用aclCreateTensorDesc接口创建aclTensorDesc类型。 |
返回值说明
返回0表示成功,返回其他值表示失败,请参见aclError。
父主题: aclTensorDesc