Fix min() and max() for empty tensors (#52565)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/34907
Pull Request resolved: https://github.com/pytorch/pytorch/pull/52565
Reviewed By: anjali411
Differential Revision: D27999955
Pulled By: ezyang
fbshipit-source-id: 30e88cc8d84806198500e3001ecf58fa764536dd