Returns the mean of all the elements in the tensor.