add generic graph break hints (#147429)
Summary:
X-link: https://github.com/pytorch/pytorch/pull/147429
Approved by: https://github.com/jansel, https://github.com/zou3519
ghstack dependencies: #147385
Reviewed By: wdvr
Differential Revision: D70262721
fbshipit-source-id: f0f44f34d2c5a715755f2e60595681914c87fd6d