-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[pytorch][mobile] disable backward function codegen if disable_autograd is set #25817
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
…ad is set Summary: As discussed on PR #25697 - to remove autograd/functions.* without using intrusive #if/#else we need whitelist "AsStridedBackward" used by variable.cpp. Test Plan: - builds and runs with stacked diffs
|
I'm going to leave this one to @gchanan, as this change is by his request. |
…able_autograd is set" Summary: As discussed on PR #25697 - to remove autograd/functions.* without using intrusive #if/#else we need whitelist "AsStridedBackward" used by variable.cpp. Test Plan: - builds and runs with stacked diffs Pull Request resolved: #25817 Differential Revision: [D17247235](https://our.internmc.facebook.com/intern/diff/D17247235)
…able_autograd is set" Summary: As discussed on PR #25697 - to remove autograd/functions.* without using intrusive #if/#else we need whitelist "AsStridedBackward" used by variable.cpp. Test Plan: - builds and runs with stacked diffs Pull Request resolved: #25817 Differential Revision: [D17247235](https://our.internmc.facebook.com/intern/diff/D17247235)
…able_autograd is set" Summary: As discussed on PR #25697 - to remove autograd/functions.* without using intrusive #if/#else we need whitelist "AsStridedBackward" used by variable.cpp. Test Plan: - builds and runs with stacked diffs Pull Request resolved: #25817 Differential Revision: [D17247235](https://our.internmc.facebook.com/intern/diff/D17247235)
…able_autograd is set" Summary: As discussed on PR #25697 - to remove autograd/functions.* without using intrusive #if/#else we need whitelist "AsStridedBackward" used by variable.cpp. Test Plan: - builds and runs with stacked diffs Pull Request resolved: #25817 Differential Revision: [D17247235](https://our.internmc.facebook.com/intern/diff/D17247235)
…able_autograd is set" Summary: As discussed on PR #25697 - to remove autograd/functions.* without using intrusive #if/#else we need whitelist "AsStridedBackward" used by variable.cpp. Test Plan: - builds and runs with stacked diffs Pull Request resolved: #25817 Differential Revision: [D17247235](https://our.internmc.facebook.com/intern/diff/D17247235)
…n codegen if disable_autograd is set" Summary: As discussed on PR #25697 - to remove autograd/functions.* without using intrusive #if/#else we need whitelist "AsStridedBackward" used by variable.cpp. Test Plan: - builds and runs with stacked diffs Pull Request resolved: #25817 Differential Revision: [D17247235](https://our.internmc.facebook.com/intern/diff/D17247235)
…able_autograd is set" Summary: As discussed on PR #25697 - to remove autograd/functions.* without using intrusive #if/#else we need whitelist "AsStridedBackward" used by variable.cpp. Test Plan: - builds and runs with stacked diffs Pull Request resolved: #25817 Differential Revision: [D17247235](https://our.internmc.facebook.com/intern/diff/D17247235)
…n codegen if disable_autograd is set" Summary: As discussed on PR #25697 - to remove autograd/functions.* without using intrusive #if/#else we need whitelist "AsStridedBackward" used by variable.cpp. Test Plan: - builds and runs with stacked diffs Pull Request resolved: #25817 Differential Revision: [D17247235](https://our.internmc.facebook.com/intern/diff/D17247235)
|
The impact on compressed DSO size: Before: After: |
…able_autograd is set" Summary: As discussed on PR #25697 - to remove autograd/functions.* without using intrusive #if/#else we need whitelist "AsStridedBackward" used by variable.cpp. Test Plan: - builds and runs with stacked diffs Pull Request resolved: #25817 Differential Revision: [D17247235](https://our.internmc.facebook.com/intern/diff/D17247235)
…n codegen if disable_autograd is set" Summary: As discussed on PR #25697 - to remove autograd/functions.* without using intrusive #if/#else we need whitelist "AsStridedBackward" used by variable.cpp. Test Plan: - builds and runs with stacked diffs Pull Request resolved: #25817 Differential Revision: [D17247235](https://our.internmc.facebook.com/intern/diff/D17247235)
…able_autograd is set" Summary: As discussed on PR #25697 - to remove autograd/functions.* without using intrusive #if/#else we need whitelist "AsStridedBackward" used by variable.cpp. Test Plan: - builds and runs with stacked diffs Pull Request resolved: #25817 Differential Revision: [D17247235](https://our.internmc.facebook.com/intern/diff/D17247235)
…n codegen if disable_autograd is set" Summary: As discussed on PR #25697 - to remove autograd/functions.* without using intrusive #if/#else we need whitelist "AsStridedBackward" used by variable.cpp. Test Plan: - builds and runs with stacked diffs Pull Request resolved: #25817 Differential Revision: [D17247235](https://our.internmc.facebook.com/intern/diff/D17247235)
|
so now we have access to AsStridedBackward? That seems good, but do we need to do this in codegen, instead of arranging the files in some way to achieve the same thing more obviously? |
|
This PR is mainly to shrink static library size as most code removed by this PR will be removed by linker automatically for dynamic library. As we are ok with the iOS static library build size for now so I think we can abandon this change to avoid adding complexity to the system. |
…ad is set Summary: As discussed on PR #25697 - to remove autograd/functions.* without using intrusive #if/#else we need whitelist "AsStridedBackward" used by variable.cpp. Test Plan: - builds and runs with stacked diffs ghstack-source-id: 3a1b5ee Pull Request resolved: pytorch/pytorch#25817
Stack from ghstack:
Summary:
As discussed on PR #25697 - to remove autograd/functions.* without using
intrusive #if/#else we need whitelist "AsStridedBackward" used by variable.cpp.
Test Plan:
Pull Request resolved: #25817
Differential Revision: D17247235