onnxruntime/core/framework/tensor_shape.cc
int64_t TensorShape::Size() const {
  size_t arraySize = size();
  int64_t size = SizeHelper(0, arraySize);
  //should we cache the size? as multiple operation may be expensive.
  return size;
}
/**
 * Return the total number of elements. Returns 1 for an empty (rank 0) TensorShape.
 */
Return the total number of elements. Returns 1 for an empty (rank 0) TensorShape.
Return the total number of elements . Returns 1 for an empty ( rank 0 ) TensorShape .
int64_t TensorShape::Size() const {
  size_t arraySize = size();
  int64_t size = SizeHelper(0, arraySize);
  return size;
}
int64_t TensorShape :: Size ( ) const { size_t arraySize = size ( ) ; int64_t size = SizeHelper ( 0 , arraySize ) ; return size ; }
Return the total number of elements.
Return the total number of elements .
//should we cache the size? as multiple operation may be expensive.