move generate_code resources into tools/autograd library
Pull Request resolved: https://github.com/pytorch/pytorch/pull/75463
This better matches how the corresponding Bazel library does it.
Differential Revision: [D35480501](https://our.internmc.facebook.com/intern/diff/D35480501/)
**NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D35480501/)!
Approved by: https://github.com/albanD, https://github.com/malfet
Author
Michael Andreas Dagitses