Nikronic:

look more intuitively, if we do not want to raise an exception, the best scenario is nan as there are many numerical operation that might produce nan as an unexpected bahvior.


Thanks for the reply.
Well, I think mean() of an empty tensor should be an empty tensor.