-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Add docstring for is_inference_mode_enabled #59047
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
Conversation
💊 CI failures summary and remediationsAs of commit b6c0008 (more details on the Dr. CI page):
6 failures not recognized by patterns:
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
|
@soulitzer has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
@soulitzer has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@soulitzer has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@soulitzer merged this pull request in 9e60c7d. |
Summary:
Fixes` #{issue number}
Testing:
```
>>> import torch
>>> torch.is_inference_mode_enabled.__doc__
'\nis_inference_mode_enabled(input) -> (bool)\n\nReturns True if inference mode is currently enabled.\n\nArgs:\n input (Tensor): the input tensor.\n'
```
Pull Request resolved: #59047
Reviewed By: ailzhang
Differential Revision: D28726991
Pulled By: soulitzer
fbshipit-source-id: c117c7d73e551a1b5f0e215f2aed528bf558ef7c
Summary:
Fixes` #{issue number}
Testing:
```
>>> import torch
>>> torch.is_inference_mode_enabled.__doc__
'\nis_inference_mode_enabled(input) -> (bool)\n\nReturns True if inference mode is currently enabled.\n\nArgs:\n input (Tensor): the input tensor.\n'
```
Pull Request resolved: #59047
Reviewed By: ailzhang
Differential Revision: D28726991
Pulled By: soulitzer
fbshipit-source-id: c117c7d73e551a1b5f0e215f2aed528bf558ef7c
Summary:
Fixes` #{issue number}
Testing:
```
>>> import torch
>>> torch.is_inference_mode_enabled.__doc__
'\nis_inference_mode_enabled(input) -> (bool)\n\nReturns True if inference mode is currently enabled.\n\nArgs:\n input (Tensor): the input tensor.\n'
```
Pull Request resolved: pytorch#59047
Reviewed By: ailzhang
Differential Revision: D28726991
Pulled By: soulitzer
fbshipit-source-id: c117c7d73e551a1b5f0e215f2aed528bf558ef7c
Add docstring for is_inference_mode_enabled and is_grad_enabled