Function: get_tensor_desc_element_count
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Obtains the element count specified in a tensor description.
Prototype
- C Prototype
1size_t aclGetTensorDescElementCount(const aclTensorDesc *desc)
- Python Function
1count = acl.get_tensor_desc_element_count(desc)
Parameters
Parameter |
Description |
|---|---|
desc |
Int, pointer address of the aclTensorDesc type. Call acl.create_tensor_desc to create data of the aclTensorDesc type in advance. |
Returns
Return Value |
Description |
|---|---|
count |
Int, element count specified in a tensor description. |
Parent topic: aclmdlTensorDesc