Skip to content
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

Improve documentation for torch.enable_grad , torch.no_grad and torch.set_grad_enabled #23310

Closed
wants to merge 1 commit into from

Conversation

prasunanand
Copy link
Contributor

Modified documentation for torch.enable_grad , torch.no_grad and torch.set_grad_enabled.

Fixes #19189

@pytorchbot pytorchbot added the module: autograd Related to torch.autograd, and the autograd engine in general label Jul 24, 2019
@prasunanand prasunanand requested a review from ezyang July 24, 2019 16:58
@soumith soumith changed the title Issue19189 Improve documentation for torch.enable_grad , torch.no_grad and torch.set_grad_enabled Jul 24, 2019
modify documentation for torch.autograd.enable_grad
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@soumith is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@soumith merged this pull request in 0c79753.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merged module: autograd Related to torch.autograd, and the autograd engine in general open source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

with torch.enable_grad also works outside a no_grad context
7 participants