Function: trans_tensor_desc_format
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
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. This API is not supported in the current version and is reserved.
Prototype
- C Prototype
1aclError aclTransTensorDescFormat(const aclTensorDesc *srcDesc, aclFormat dstFormat, aclTensorDesc **dstDesc)
- Python Function
1dst_desc, ret =acl.trans_tensor_desc_format(src_desc, dst_format)
Parameters
|
Parameter |
Description |
|---|---|
|
src_desc |
Int, pointer address of the input source aclTensorDesc data. Call Function: create_tensor_desc to create data of the aclTensorDesc type in advance. |
|
dst_format |
Returns
|
Return Value |
Description |
|---|---|
|
dst_desc |
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. |