Add custom code filter for TS (#60309)
Summary:
-----------
Adds custom code filter for Torchscript to include tracing of forward calls.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/60309
Reviewed By: zhxchen17
Differential Revision: D29317150
Pulled By: nikithamalgifb
fbshipit-source-id: d49e4dc74a2b8cc98b0d4967980d819908b7ea7b