Function: trans_tensor_desc_format
C Prototype |
aclError aclTransTensorDescFormat(const aclTensorDesc *srcDesc, aclFormat dstFormat, aclTensorDesc **dstDesc) |
|---|---|
Python Function |
dstDesc, ret = acl.trans_tensor_desc_format(srcDesc, dstFormat) |
Function Usage |
Converts the format of srcDesc (in the input source aclTensorDesc) based on the specified dstFormat to generate a new target aclTensorDesc. The format in the source aclTensorDesc remains unchanged. It is not supported in the current version and is reserved. |
Input Description |
srcDesc: int, pointer address of the input source aclTensorDesc data. Call Function: create_tensor_desc to create data of the aclTensorDesc type in advance. dstFormat: int, target format to be set. For details, see aclFormat. |
Return Value |
dstDesc: int, pointer address of the output aclTensorDesc. Call Function: create_tensor_desc to create data of the aclTensorDesc type in advance. ret: int, error code.
|
Restrictions |
None |