Function: get_tensor_desc_num_dims
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Obtains the shape dimension count specified in a tensor description.
Prototype
- C Prototype
1size_t aclGetTensorDescNumDims(const aclTensorDesc *desc)
- Python Function
1size = acl.get_tensor_desc_num_dims(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 |
|---|---|
size |
Int, shape dimension count specified in a tensor description. If ACL_UNKNOWN_RANK(0xFFFFFFFFFFFFFFFE) is returned, the dimension count is unknown. |
Parent topic: aclmdlTensorDesc