Skip to content

Commit

Permalink
Update on "[doc] fix amp doc"
Browse files Browse the repository at this point in the history
# Motivation
The doc shown on https://pytorch.org/docs/main/amp.html#torch.amp.autocast_mode.is_autocast_available should be `torch.amp.is_autocast_available` instead of `torch.amp.autocast_mode.is_autocast_available`. This PR aims to fix it.



cc mcarilli ptrblck leslie-fang-intel jgong5

[ghstack-poisoned]
  • Loading branch information
guangyey committed May 11, 2024
2 parents 2a6ac3b + 9ebe022 commit 0865d7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/amp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Autocasting

.. autoclass:: DOC_TEST
:members:
.. automethod:: test

.. currentmodule:: torch

Expand Down

0 comments on commit 0865d7e

Please sign in to comment.