-
Notifications
You must be signed in to change notification settings - Fork 751
Override unload_method in training_module to erase the tensors pointing to the released memory #13590
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/13590
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 2 Unrelated FailuresAs of commit dd38733 with merge base 52128bd ( NEW FAILURE - The following job has failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D80754181 |
This PR needs a
|
…ng to the released memory (pytorch#13590) Summary: as title Differential Revision: D80754181
af8920e to
ae89bc8
Compare
|
This pull request was exported from Phabricator. Differential Revision: D80754181 |
ae89bc8 to
9413559
Compare
…ng to the released memory (pytorch#13590) Summary: as title Differential Revision: D80754181
|
This pull request was exported from Phabricator. Differential Revision: D80754181 |
| return methods_.erase(method_name); | ||
| } | ||
|
|
||
| inline bool unload_forward() { |
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.
Nit: I expect this is an uncommon operation so don't need this.
| explicit TrainingModule(Module&&) = delete; | ||
| TrainingModule& operator=(Module&&) = delete; | ||
|
|
||
| // Overriding to erase the tensors pointing to the released memory. |
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.
It's not overriding
9413559 to
6ed1e69
Compare
…ng to the released memory (pytorch#13590) Summary: as title Differential Revision: D80754181
…ng to the released memory (pytorch#13590) Summary: as title Differential Revision: D80754181
6ed1e69 to
7c29ee9
Compare
|
This pull request was exported from Phabricator. Differential Revision: D80754181 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D80754181 |
…ng to the released memory (pytorch#13590) Summary: Pull Request resolved: pytorch#13590 as title Differential Revision: D80754181
7c29ee9 to
a1ff156
Compare
…ng to the released memory (pytorch#13590) Summary: as title Differential Revision: D80754181
a1ff156 to
09baae4
Compare
|
This pull request was exported from Phabricator. Differential Revision: D80754181 |
…ng to the released memory (pytorch#13590) Summary: as title Differential Revision: D80754181
2fa2d48 to
9d7a0f7
Compare
…ng to the released memory (pytorch#13590) Summary: as title Reviewed By: JacobSzwejbka Differential Revision: D80754181
9d7a0f7 to
dd38733
Compare
|
This pull request was exported from Phabricator. Differential Revision: D80754181 |
…ng to the released memory Differential Revision: D80754181 Pull Request resolved: pytorch#13590
Summary: as title
Differential Revision: D80754181