aclTransTensorDescFormat
Note: This API is reserved and is not supported currently.
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Creates new aclTensorDesc with the dstFormat format from the source aclTensorDesc. This API is synchronous.
Prototype
1
|
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 to be set. For details about the type definition, see aclFormat. |
|
dstDesc |
Output |
Pointer to the pointer to the target aclTensorDesc data. Call aclCreateTensorDesc to create data of the aclTensorDesc type in advance. |
Returns
0 on success; else, failure. For details, see aclError.