Skip to content

Conversation

@albanD
Copy link
Collaborator

@albanD albanD commented Nov 22, 2022

Fixes #89450

I would have completely removed it but I don't think this is particularly urgent and there are some use of it in the wild: https://github.com/search?q=%2Ftorch%5C.no_grad%5C%28%5C%29%5Cnclass%2F&type=code
So we might as well take one release to do it.

@albanD albanD requested a review from soulitzer as a code owner November 22, 2022 21:10
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 22, 2022

🔗 Helpful Links

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

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

❌ 1 Failures

As of commit 692a3f5:

The following jobs have failed:

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

@albanD albanD added topic: deprecation topic category module: python frontend For issues relating to PyTorch's Python frontend labels Nov 22, 2022
Copy link
Collaborator

@lezcano lezcano left a comment

Choose a reason for hiding this comment

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

Wow, if you had asked me, I don't think I would have been able to come up with this "use case".

@albanD
Copy link
Collaborator Author

albanD commented Nov 23, 2022

@pytorchbot merge -g

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 23, 2022
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks on your PR pass since you used the green (-g) flag (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

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 2 additional jobs have failed, first few of them are: trunk ,trunk / cuda11.6-py3.10-gcc7-sm86 / test (default, 1, 4, linux.g5.4xlarge.nvidia.gpu)

Details for Dev Infra team Raised by workflow job

@albanD
Copy link
Collaborator Author

albanD commented Nov 23, 2022

@pytorchbot merge -f "Flaky CI test"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes).

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

kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Dec 10, 2022
…89522)

Fixes pytorch#89450

I would have completely removed it but I don't think this is particularly urgent and there are some use of it in the wild: https://github.com/search?q=%2Ftorch%5C.no_grad%5C%28%5C%29%5Cnclass%2F&type=code
So we might as well take one release to do it.
Pull Request resolved: pytorch#89522
Approved by: https://github.com/lezcano, https://github.com/soulitzer, https://github.com/janeyx99
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: python frontend For issues relating to PyTorch's Python frontend topic: deprecation topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@torch.no_grad causes pickling error when using more than one GPU

5 participants