Reorder the Fx execution order to in-time get_attr rather than putting all get_attr ahead (#95014)
Summary:
Basically today we:
[getattr....getattr, call partition1, call parition2]
this makes getattr just in time:
so [getattr, call partition1, getattr, call partition 2 ..]
Test Plan:
CMF and MAI test result:
https://fb.quip.com/K5J9A7G246Ox
Differential Revision: D43376080
Pull Request resolved: https://github.com/pytorch/pytorch/pull/95014
Approved by: https://github.com/angelayi