using accumulate type to do the computation of mean reduce(CPU) (#97351)
This PR will use accumulate type to do the computation of mean reduce for CPU path as GPU path.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/97351
Approved by: https://github.com/jgong5, https://github.com/peterbell10, https://github.com/ezyang