Skip to content

Conversation

Copy link

pytorch-bot bot commented Jan 3, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 2620393 with merge base 48a05ee (image):
💚 Looks good so far! There are no failures yet. 💚

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

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
res = opt_fn(mv_out_op, torch.empty(0), torch.ones(3, 3), torch.ones(3))
self.assertEqual(ref, res)

def test_dict_mutation_side_effect(self):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved to test_dicts.py


torch._dynamo.testing.standard_test(self, fn, 1, expected_ops=1)

@unittest.skipIf(sys.version_info[:2] <= (3, 8), "Requires astunparse")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not relevant after cpp guards

@anijain2305
Copy link
Contributor Author

@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

if item.is_immutable():
return False
if isinstance(item.mutation_type, AttributeMutationNew):
if isinstance(item.mutation_type, (AttributeMutationNew, ValueMutationNew)):
Copy link
Contributor

Choose a reason for hiding this comment

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

This one is a bit surprising, since ValueMutationNew suggests we don't need to track it for side effects, e.g., it's a dictionary/list created by the code Dynamo is tracing through, and its state would be fully represented by ListVariable or ConstDictVariable.

It's possible that we attached the wrong mutation_type somewhere, or I might be missing something.

pytorchmergebot pushed a commit that referenced this pull request Jan 4, 2025
pytorchmergebot pushed a commit that referenced this pull request Jan 4, 2025
@github-actions github-actions bot deleted the gh/anijain2305/609/head branch February 3, 2025 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants