Skip to content

[Dynamo] Replace unimplemented with unimplemented_v2 in torch/_dynamo/variables/tensor.py#153146

Closed
shink wants to merge 12 commits intopytorch:mainfrom
shink:fix/dynamo/v2/tensor
Closed

[Dynamo] Replace unimplemented with unimplemented_v2 in torch/_dynamo/variables/tensor.py#153146
shink wants to merge 12 commits intopytorch:mainfrom
shink:fix/dynamo/v2/tensor

Conversation

@shink
Copy link
Contributor

@shink shink commented May 8, 2025

@pytorch-bot
Copy link

pytorch-bot bot commented May 8, 2025

🔗 Helpful Links

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

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 4e8e038 with merge base 2908c10 (image):

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.

Comment on lines 1291 to 1329
Copy link
Contributor Author

Choose a reason for hiding this comment

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

What should explanation look like? Anyone can help?

Copy link
Member

Choose a reason for hiding this comment

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

Dynamo does not support changes to a Tensor's requires_grad through calling requires_grad_().

@shink
Copy link
Contributor Author

shink commented May 8, 2025

@pytorchbot label "topic: not user facing"

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label May 8, 2025
@colesbury colesbury requested a review from williamwen42 May 13, 2025 00:47
@colesbury colesbury added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label May 13, 2025
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.

I would be more conservative on suggesting SUPPORTABLE because we don't know how difficult it would be to support some of these.

Copy link
Member

Choose a reason for hiding this comment

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

This is a fundamental graph break.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Many thanks for your review. Have updated in this commit: 4d3fa9d

Comment on lines 1291 to 1329
Copy link
Member

Choose a reason for hiding this comment

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

Dynamo does not support changes to a Tensor's requires_grad through calling requires_grad_().

@shink
Copy link
Contributor Author

shink commented May 14, 2025

@pytorchbot rebase -b main

@pytorchmergebot
Copy link
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/main. Check the current status here

@pytorchmergebot
Copy link
Collaborator

Successfully rebased fix/dynamo/v2/tensor onto refs/remotes/origin/main, please pull locally before adding more changes (for example, via git checkout fix/dynamo/v2/tensor && git pull --rebase)

@shink shink requested a review from williamwen42 May 15, 2025 06:11
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.

Let's leave out SUPPORTABLE graph break hints for now unless we think a graph break really could be reasonably supported. The mindset behind a SUPPORTABLE graph break should be "this is technically feasible but we haven't had the time to get around to it yet." But a lot of these graph breaks I don't have much of an idea how easy they are to support.

@shink
Copy link
Contributor Author

shink commented May 19, 2025

@pytorchbot rebase -b main

@pytorchmergebot
Copy link
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/main. Check the current status here

@pytorchmergebot
Copy link
Collaborator

Successfully rebased fix/dynamo/v2/tensor onto refs/remotes/origin/main, please pull locally before adding more changes (for example, via git checkout fix/dynamo/v2/tensor && git pull --rebase)

@shink
Copy link
Contributor Author

shink commented Jun 3, 2025

@williamwen42 Sorry for the late update. Could your please take another look? Thank you for your time!

@shink
Copy link
Contributor Author

shink commented Jun 4, 2025

@pytorchbot rebase -b main

@pytorchmergebot
Copy link
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/main. Check the current status here

@pytorchmergebot
Copy link
Collaborator

Successfully rebased fix/dynamo/v2/tensor onto refs/remotes/origin/main, please pull locally before adding more changes (for example, via git checkout fix/dynamo/v2/tensor && git pull --rebase)

@pytorch-bot pytorch-bot bot added the oncall: distributed Add this issue/PR to distributed oncall triage queue label Jun 4, 2025
@shink shink force-pushed the fix/dynamo/v2/tensor branch from afa5ed3 to f00a27a Compare June 5, 2025 01:16
@shink
Copy link
Contributor Author

shink commented Jun 5, 2025

@pytorchbot merge

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

Merge failed

Reason: 1 jobs have failed, first few of them are: trunk / macos-py3-arm64 / test (default, 2, 3, macos-m1-stable)

Details for Dev Infra team Raised by workflow job

@pytorch-bot pytorch-bot bot removed the ciflow/trunk Trigger trunk jobs on your pull request label Jun 5, 2025
@shink
Copy link
Contributor Author

shink commented Jun 9, 2025

@pytorchbot rebase -b main

@pytorchmergebot
Copy link
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/main. Check the current status here

@pytorchmergebot
Copy link
Collaborator

Successfully rebased fix/dynamo/v2/tensor onto refs/remotes/origin/main, please pull locally before adding more changes (for example, via git checkout fix/dynamo/v2/tensor && git pull --rebase)

@shink
Copy link
Contributor Author

shink commented Jun 9, 2025

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jun 9, 2025
@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

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 oncall: distributed Add this issue/PR to distributed oncall triage queue 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.

5 participants