NumElements
Description
Obtains the shape size of a tensor, that is, the product of the sizes of all dimensions.
Prototype
int64_t NumElements() const
Parameters
None
Returns
An int64_t for the shape size.
Restrictions
None
Example
int64_t numElements = shape->NumElements();
Parent topic: Class TensorShape