torch.histc added a finite range check to resolve segfaults if tensor has inf. also added checks for nan values, min>max (#27712)
Summary:
https://github.com/pytorch/pytorch/issues/27464
Pull Request resolved: https://github.com/pytorch/pytorch/pull/27712
Differential Revision: D18064544
Pulled By: anjali411
fbshipit-source-id: c9c6d8eb4d55f2b5320409ba238bf44b0be8902e