Fix use of deprecated tensor.type() in SegmentReduce.cpp (#64151)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/64151
Reviewed By: mruberry
Differential Revision: D30917268
Pulled By: ngimel
fbshipit-source-id: 63427372b651ac495d48ef552eba5fbf0e4378e9