Numel
Function Usage
Obtains the total number of elements in an aclTensor.
Prototype
int64_t Numel()
Parameters
None
Returns
Total number of elements in an aclTensor.
Constraints
None
Example
1 2 3 4 | // Obtain the total number of elements for an input. void Func(const aclTensor *input) { int64_t num = input->Numel(); } |
Parent topic: common_types