[AOTInductor] Initial functionality for Inf and NaN checker (#109526)
Summary:
Add initial functionality for Inf and NaN checker for AOTInductor.
Test Plan:
Included in commit. Skipped for CI as SIGABRT can't be captured by pytest.
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: [D49379751](https://our.internmc.facebook.com/intern/diff/D49379751)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/109526
Approved by: https://github.com/chenyang78