[PyTorch Error Logging][1/N] Adding Error Logging for Run_Method (#40535)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40535
Adding error logging for run_method.
Adding CANCEL(the method cannot be found) and FAIL status(error occurred when running the method)
ghstack-source-id: 106604786
Test Plan: {F240891059}
Reviewed By: xcheng16
Differential Revision: D22097857
fbshipit-source-id: 4bdc8e3993e40cb1ba51e4706be6637e3afd40b4