Add support for an operator level thread local observer (#108822)
Summary: Add support for an operator level thread local observer
Test Plan: Verified the interception as part of a pytorch model evaluation with static runtime.
Differential Revision: D49082250
Pull Request resolved: https://github.com/pytorch/pytorch/pull/108822
Approved by: https://github.com/davidberard98