[JIT] Add debug dumps in between passes in graph executor. (#42688)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/42688
Both the profiling executor and the legacy executor have the debug
loggin now.
Ideally, if we had a pass manager, this could be done as a part of it,
but since we have none, I had to insert the debug statements manually.
Test Plan: Imported from OSS
Reviewed By: bertmaher
Differential Revision: D22981675
Pulled By: ZolotukhinM
fbshipit-source-id: 22b8789e860aa90d5802fc72a4113b22c6fc4da5
Author
Mikhail Zolotukhin