-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Fix enum constant printing and add FileCheck to all Enum tests #42874
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]
…ests" [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 555e352 (more details on the Dr. CI page):
ci.pytorch.org: 1 failedThis comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 8 times. |
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.
What is the motivation for this PR?
I worry that the IR representation of Enums is an internal implementation detail that shouldn't matter much as long as enums behave as they should (which we already have tests for).
It is technically internal implementation detail from end-user's perspective. But I think it is still worth testing that key parts of IR is generated correctly. These filechecks are cheap and key parts (type annotation, how constants are printed etc) shouldn't change that much. |
…ests" [ghstack-poisoned]
…ests" [ghstack-poisoned]
@gmagogsfm merged this pull request in 8eb3de7. |
Summary: Stack from [ghstack](https://github.com/ezyang/ghstack): * **#43188 Enable Enum pickling/unpickling.** * #42963 Add Enum TorchScript serialization and deserialization support * #42874 Fix enum constant printing and add FileCheck to all Enum tests * #43121 Add Enum convert back to Python object support Pull Request resolved: #43188 Reviewed By: zdevito Differential Revision: D23365141 Pulled By: gmagogsfm fbshipit-source-id: f0c93d4ac614dec047ad8640eb6bd9c74159b558
Stack from ghstack:
Differential Revision: D23222894