Python error unit tests on delegation of backend_with_compiler_demo (#60689)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/60689
Added a test for errors that occur with a compiler, specifically when an
operator is not supported by the backend.
ghstack-source-id: 132485207
Test Plan:
Running python test/test_jit.py TestBackendsWithCompiler -v returns a
success.
Imported from OSS
Reviewed By: iseeyuan
Differential Revision: D29374513
fbshipit-source-id: ac52b315a01719eaa4985680939239ae058d277b