KEMBAR78
Trace calls with Python `Enum` values. by ysiraichi · Pull Request #109507 · pytorch/pytorch · GitHub
Skip to content

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: 7023390
Pull Request resolved: #109507
ysiraichi added a commit that referenced this pull request Sep 19, 2023
Fix: #82135

ghstack-source-id: f8f48c5
Pull Request resolved: #109507
@ysiraichi ysiraichi requested a review from ezyang September 20, 2023 13:26
ysiraichi added a commit that referenced this pull request Sep 20, 2023
Fix: #82135

ghstack-source-id: adc5f51
Pull Request resolved: #109507
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
Collaborator

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.

5 participants