Skip to content
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

Trace calls with Python Enum values. #109507

Closed
wants to merge 3 commits into from

Conversation

ysiraichi
Copy link
Collaborator

@ysiraichi ysiraichi commented Sep 18, 2023

Stack from ghstack (oldest at bottom):

Fix: #82135

@pytorch-bot
Copy link

pytorch-bot bot commented Sep 18, 2023

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit 047f60a with merge base 595af26 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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

@pytorch-bot pytorch-bot bot added the release notes: fx release notes category label Sep 18, 2023
ysiraichi added a commit that referenced this pull request Sep 18, 2023
Fix: #82135

ghstack-source-id: 7023390a339bf3ad4a31ef5b01fa6a3599c3e544
Pull Request resolved: #109507
ysiraichi added a commit that referenced this pull request Sep 19, 2023
Fix: #82135

ghstack-source-id: f8f48c505c039fe1c7e7c7691c77955fd2c660c8
Pull Request resolved: #109507
ysiraichi added a commit that referenced this pull request Sep 20, 2023
Fix: #82135

ghstack-source-id: adc5f519c4b2d743039cf691fdbe8d3242221998
Pull Request resolved: #109507
@@ -286,7 +287,7 @@ def no_node(arg):
kwargs = {field.name: self.create_arg(getattr(a, field.name)) for field in fields(a)}
return self.create_node("call_function", a.__class__, (), kwargs)

elif isinstance(a, base_types) or a is None or a is ...:
elif isinstance(a, (*base_types, enum.Enum)) or a is None or a is ...:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not put it in base_types directly?

Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ezyang ezyang requested a review from Chillee September 20, 2023 18:09
@ezyang
Copy link
Contributor

ezyang commented Sep 20, 2023

@pytorchbot merge

@ezyang ezyang closed this Sep 20, 2023
@ezyang ezyang reopened this Sep 20, 2023
@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Sep 20, 2023
@ezyang
Copy link
Contributor

ezyang commented Sep 20, 2023

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@Chillee
Copy link
Contributor

Chillee commented Sep 20, 2023

Looks fine, but what’s the purpose?

@facebook-github-bot facebook-github-bot deleted the gh/ysiraichi/89/head branch September 24, 2023 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request Merged open source release notes: fx release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants