Function: get_tensor_desc_format
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Obtains the data format of a tensor description.
Prototype
- C Prototype
1aclFormat aclGetTensorDescFormat(const aclTensorDesc *desc)
- Python Function
1format = acl.get_tensor_desc_format(desc)
Parameter Description
Parameter |
Description |
|---|---|
desc |
Int, pointer address of the aclTensorDesc type. Call acl.create_tensor_desc to create data of the aclTensorDesc type in advance. |
Return Value Description
Return Value |
Description |
|---|---|
format |
Int, format of the specified tensor description. |
Parent topic: aclmdlTensorDesc