not sure if this is the right place to ask for feature requests. What would be nice to have is a member function of the ArrayRef class that returns to total size
torch::prod(ArrayRef)
This does not work since prod is not implemented for objects of type ArrayRef.