-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Disable c10 op registration temporarily to reduce code size #26821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
[ghstack-poisoned]
Minimal revert of #26131 necessary to cutdown the codesize pre 1.3 until we figure out how to make templates better. Note the full revert doesn't work as many changes landed on top of it. On my linux machine libtorch.so (no cuda build) went from 98Mb to 75Mb [ghstack-poisoned]
smessmer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Let's only land this into the release branch though, not to master.
Minimal revert of #26131 necessary to cutdown the codesize pre 1.3 until we figure out how to make templates better. Note the full revert doesn't work as many changes landed on top of it. On my linux machine libtorch.so (no cuda build) went from 98Mb to 75Mb Differential Revision: [D17576585](https://our.internmc.facebook.com/intern/diff/D17576585) [ghstack-poisoned]
|
|
smessmer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is probably not necessary anymore because a lot of PRs landed fixing binary size issues. Feel free to override me though if you disagree.
|
based on @smessmer's comment and a discussion with @dzhulgakov, we are going to not land this. The stats are this would lower code size by 2 MB (out of ~90), but it's probably better to just keep this code as close as possible to master. |
Stack from ghstack:
Minimal revert of #26131 necessary to cutdown the codesize pre 1.3 until we figure out how to make templates better. Note the full revert doesn't work as many changes landed on top of it.
On my linux machine libtorch.so (no cuda build) went from 98Mb to 75Mb
Differential Revision: D17576585