- Notifications
You must be signed in to change notification settings - Fork26.3k
Preserve Enum types during torch.export serialization and deserialization#154821
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
pytorch-botbot commentedJun 1, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
🔗 Helpful Links🧪 See artifacts and rendered test results athud.pytorch.org/pr/154821
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit6162f8d with merge basef6e18bc ( BROKEN TRUNK - The following job failed but were present on the merge base:👉Rebase onto the `viable/strict` branch to avoid these failures
UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
narekmalk commentedJun 1, 2025
@pytorchbot label "release notes: export" |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Skylion007 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 once typing is improved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
angelayi 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.
thanks so much!
narekmalk commentedJun 4, 2025
@pytorchbot merge |
Pull workflow has not been scheduled for the PR yet. It could be because author doesn't have permissions to run those or skip-checks keywords were added to PR/commits, aborting merge. Please get/give approval for the workflows and/or remove skip ci decorators before next merge attempt. If you think this is a mistake, please contact PyTorch Dev Infra. |
XuehaiPan commentedJun 4, 2025
@pytorchbot merge |
pytorchmergebot commentedJun 4, 2025
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in thewiki. Questions? Feedback? Please reach out to thePyTorch DevX Team |
pytorchmergebot commentedJun 4, 2025
Merge failedReason: 2 mandatory check(s) failed. The first few are: Dig deeper byviewing the failures on hud |
narekmalk commentedJun 6, 2025
@XuehaiPan can you please retrigger the merge? |
XuehaiPan commentedJun 6, 2025
@pytorchbot merge -r |
pytorchmergebot commentedJun 6, 2025
@pytorchbot started a rebase job ontorefs/remotes/origin/viable/strict. Check the current statushere |
pytorchmergebot commentedJun 6, 2025
Successfully rebased |
fb57976 to3a4f64bComparepytorchmergebot commentedJun 6, 2025
Merge startedYour change will be merged while ignoring the following 1 checks:Lint / Link checks / lint-xrefs / linux-job Learn more about merging in thewiki. Questions? Feedback? Please reach out to thePyTorch DevX Team |
pytorchmergebot commentedJun 6, 2025
Merge failedReason: 5 mandatory check(s) failed. The first few are:
Dig deeper byviewing the failures on hud |
XuehaiPan commentedJun 6, 2025
@pytorchbot merge -i |
pytorchmergebot commentedJun 6, 2025
Merge startedYour change will be merged while ignoring the following 6 checks:Lint / quick-checks / linux-job,Lint / toc / linux-job,Lint / workflow-checks / linux-job,Lint / Test tools / linux-job,Lint / Link checks / lint-xrefs / linux-job,Lint / Link checks / lint-urls / linux-job Learn more about merging in thewiki. Questions? Feedback? Please reach out to thePyTorch DevX Team |
pytorchmergebot commentedJun 6, 2025
Merge failedReason: 1 mandatory check(s) failed. The first few are: Dig deeper byviewing the failures on hud |
XuehaiPan commentedJun 7, 2025
The tests unexpectedly hang at the step "Calculate Docker image". cc@malfet@seemethere@huydhn |
XuehaiPan commentedJun 8, 2025
@pytorchbot merge -r |
pytorchmergebot commentedJun 8, 2025
@pytorchbot started a rebase job ontorefs/remotes/origin/viable/strict. Check the current statushere |
pytorchmergebot commentedJun 8, 2025
Successfully rebased |
3a4f64b to6162f8dComparepytorchmergebot commentedJun 8, 2025
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in thewiki. Questions? Feedback? Please reach out to thePyTorch DevX Team |
Fixes#154674
Addresses an issue where
torch.exportdoes not correctly preserve PythonEnumtypes during the save/load round-trip. Previously, Enum inputs were serialized by value only, causing their type to be lost after deserialization.