numElements method
Returns the number of elements in a flattened (1-D) view of the tensor.
Implementation
int numElements() {
return computeNumElements(shape);
}
Returns the number of elements in a flattened (1-D) view of the tensor.
int numElements() {
return computeNumElements(shape);
}