Add passes to profiling executor pipeline (#43636)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/43636
We weren't running inlining in the forward graph of differentiable subgraphs, and we weren't getting rid of all profiles as part of optimization.
Test Plan: Imported from OSS
Reviewed By: ZolotukhinM
Differential Revision: D23358804
Pulled By: eellison
fbshipit-source-id: 05ede5fa356a15ca385f899006cb5b35484ef620