8000 Replace `unimplemented` with `unimplemented_v2' in `codegen.py` by zeshengzong · Pull Request #148069 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

Replace unimplemented with unimplemented_v2' in codegen.py` #148069

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

Closed
wants to merge 3 commits into from

Conversation

zeshengzong
Copy link
Contributor
@zeshengzong zeshengzong commented Feb 27, 2025

Copy link
pytorch-bot bot commented Feb 27, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure

As of commit 0b18379 with merge base 3985ce0 (image):

NEW FAILURE - The following job has failed:

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.

@zeshengzong
Copy link
Contributor Author

@pytorchbot label "topic: not user facing"

@zeshengzong zeshengzong marked this pull request as ready for review February 27, 2025 06:55
@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Feb 27, 2025
@@ -197,7 +197,15 @@ def __call__(self, value, allow_cache=True):
try:
self.call_reconstruct(source)
except NotImplementedError:
unimplemented(f"reconstruct: {source}")
unimplemented_v2(
gb_type="Reconstruction failure",
Copy link
Member

Choose a reason for hiding this comment

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

Should highlight here that this reconstruction failure is related to sources (differentiate from the other reconstruction failure)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed, thanks!

Copy link
Member
@williamwen42 williamwen42 left a comment

Choose a reason for hiding this comment

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

cc @anijain2305 is this graph break actually needed? I'd imagine if a source doesn't have a reconstruction rule, should it be a dynamo bug?

@anijain2305
Copy link
Contributor

cc @anijain2305 is this graph break actually needed? I'd imagine if a source doesn't have a reconstruction rule, should it be a dynamo bug?

Some sources reconstruct is still NotImplemetedError. I am ok either way here.

  1. We should just try removing the try except, and see how CI works. If there are failing tests, we can scope out and if its a day to two to add reconstruct logic. Lets fix them.
  2. If the work is long, we can keep current graph break.

explanation=f"Dynamo has no bytecode reconstruction implemented for {type(source)} variable {source}.",
hints=[
"Report an issue to PyTorch if you need reconstrtuction support. Note that objects that don't have"
"reconstruction rules may be fundamentally unreconstructable.",
Copy link
Member

Choose a reason for hiding this comment

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

Let's add *graph_break_hints.DYNAMO_BUG here, since we should be fixing these graph breaks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Change to hints=[*graph_break_hints.DYNAMO_BUG], thanks!

@janeyx99 janeyx99 added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Mar 3, 2025
@williamwen42
Copy link
Member

@pytorchbot merge -i

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 6, 2025
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged while ignoring the following 1 checks: pull / linux-focal-py3.13-clang10 / test (default, 2, 5, lf.linux.4xlarge)

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

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 module: dynamo open source topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[dynamo] Replace unimplemented with unimplemented_v2
7 participants
0