Obtains the element count specified in a tensor description. This API is synchronous.
size_t aclGetTensorDescElementCount(const aclTensorDesc *desc)
Parameter |
Input/Output |
Description |
|---|---|---|
desc |
Input |
Pointer to data of the aclTensorDesc type. Call aclCreateTensorDesc to create data of the aclTensorDesc type in advance. |
Number of elements in the tensor description