Function: get_tensor_desc_element_count
C Prototype |
size_t aclGetTensorDescElementCount(const aclTensorDesc *desc) |
|---|---|
Python Function |
size = acl.get_tensor_desc_element_count(desc) |
Function Usage |
Obtains the element count specified in a tensor description. |
Input Description |
desc: int, pointer address of aclTensorDesc. Call acl.create_tensor_desc to create data of the aclTensorDesc type in advance. |
Return Value |
size: int, number of elements in the tensor description. |
Restrictions |
None |
Parent topic: Common APIs