KEMBAR78
[contextlib] Wrapping a function with `set_grad_enabled` will consume its global mutation by jon-chuang · Pull Request #113359 · pytorch/pytorch · GitHub
Skip to content

Conversation

@jon-chuang
Copy link
Collaborator

@jon-chuang jon-chuang commented Nov 9, 2023

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 9, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit 6f15925 with merge base bf2c20b (image):
💚 Looks good so far! There are no failures yet. 💚

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

@jon-chuang jon-chuang added module: bc-breaking Related to a BC-breaking change module: autograd Related to torch.autograd, and the autograd engine in general labels Nov 9, 2023
@pytorch pytorch deleted a comment from github-actions bot Nov 9, 2023
@jon-chuang jon-chuang requested a review from ezyang November 9, 2023 15:39
@jon-chuang jon-chuang added the release notes: autograd release notes category label Nov 9, 2023
@pytorch pytorch deleted a comment from github-actions bot Nov 9, 2023
Copy link
Contributor

@soulitzer soulitzer left a comment

Choose a reason for hiding this comment

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

Thanks!

@jon-chuang
Copy link
Collaborator Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 9, 2023
@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/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged module: autograd Related to torch.autograd, and the autograd engine in general module: bc-breaking Related to a BC-breaking change module: dynamo open source release notes: autograd release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[contextlib] DecoratorContextManager and hence set_grad_enabled behaves in an unexpected way

5 participants