Skip to content

Conversation

pytorchbot
Copy link
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #14905 by @Gasoonjia
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/gasoonjia/50/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/gasoonjia/50/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/gasoonjia/49/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/gasoonjia/50/orig
Differential Revision: D84135792
@diff-train-skip-merge

Pull Request resolved: #14905

This diff survives `clear_all_tensors()` function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.
ghstack-source-id: 314984329
@exported-using-ghexport

Differential Revision: [D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)
Copy link

pytorch-bot bot commented Oct 9, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/14927

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 9, 2025
This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #14919 by
@Gasoonjia
^ Please use this as the source of truth for the PR details, comments,
and reviews
ghstack PR base:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/51/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/51/head
Merge bot PR base:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/50/orig
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/51/orig
Differential Revision:
[D84207378](https://our.internmc.facebook.com/intern/diff/D84207378/)
@diff-train-skip-merge

---------

Co-authored-by: gasoonjia <gasoonjia@icloud.com>
@Gasoonjia Gasoonjia merged commit a97aac3 into gh/gasoonjia/49/orig Oct 9, 2025
19 of 20 checks passed
@Gasoonjia Gasoonjia deleted the gh/gasoonjia/50/orig branch October 9, 2025 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants