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

[doc] fix amp doc #125673

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/source/amp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ For CUDA and CPU, APIs are also provided separately:

Autocasting
^^^^^^^^^^^
.. currentmodule:: torch.amp.autocast_mode

.. autofunction:: is_autocast_available

.. currentmodule:: torch
Expand Down
4 changes: 3 additions & 1 deletion torch/amp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
_enter_autocast,
_exit_autocast,
autocast,
is_autocast_available,
is_autocast_available as is_autocast_available,
)
from .grad_scaler import GradScaler

__all__ = ["GradScaler", "autocast", "is_autocast_available"]