aclTransTensorDescFormat
Description
Creates new aclTensorDesc with the dstFormat format from the source aclTensorDesc. This API is synchronous. This API is reserved.
Prototype
aclError aclTransTensorDescFormat(const aclTensorDesc *srcDesc, aclFormat dstFormat, aclTensorDesc **dstDesc)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
srcDesc |
Input |
Pointer to source aclTensorDesc data Call aclCreateTensorDesc to create data of the aclTensorDesc type in advance. |
dstFormat |
Input |
Target format |
dstDesc |
Output |
Pointer to the pointer to the target aclTensorDesc data Call aclCreateTensorDesc to create data of the aclTensorDesc type in advance. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: aclTensorDesc