Revert "Make torch_geometric models compatible with export (#123403)" (#128377)
Summary:
This reverts commit d78991a7381adb3df5e9b63c365db4506643edce.
This PR reverts https://github.com/pytorch/pytorch/pull/123403 to fix the performance regression as discussed in https://github.com/pytorch/pytorch/issues/127513#issuecomment-2158835653.
X-link: https://github.com/pytorch/pytorch/pull/128377
Approved by: https://github.com/jgong5, https://github.com/angelayi, https://github.com/desertfire
Reviewed By: clee2000
Differential Revision: D58501783
fbshipit-source-id: 1e55cc2c0b315ed6869195ee6730e72eb6be9da9