Add 'optimized_graph' to Function. (#26488)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26488
Currently the main use case for this graph is inlining and that's the
only optimization we perform. We probably should run more cleanups on
this graph in future.
Test Plan: Imported from OSS
Differential Revision: D17485745
Pulled By: ZolotukhinM
fbshipit-source-id: 7b30c9ba47b4e5fff3591a0063560bfeb68f2164
Author
Mikhail Zolotukhin