Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions torch/autograd/grad_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ class no_grad(_DecoratorContextManager):
In this mode, the result of every computation will have
`requires_grad=False`, even when the inputs have `requires_grad=True`.

This mode has no effect when using :class:`~enable_grad` context manager .

This context manager is thread local; it will not affect computation
in other threads.

Expand Down Expand Up @@ -115,9 +113,6 @@ class set_grad_enabled(object):
``set_grad_enabled`` will enable or disable grads based on its argument :attr:`mode`.
It can be used as a context-manager or as a function.

When using :class:`~enable_grad` context manager, :class:`~set_grad_enabled(False)`
has no effect.

This context manager is thread local; it will not affect computation
in other threads.

Expand Down