C++ API parity: isinf (#31099)
Summary:
fixes https://github.com/pytorch/pytorch/issues/31021, port the legacy binding method of `isinf` to C++ therefore support JIT
Pull Request resolved: https://github.com/pytorch/pytorch/pull/31099
Differential Revision: D19314733
Pulled By: yf225
fbshipit-source-id: 5725c51d19c33b4fddd0fc9e7034078580bd534e