Skip to content

Commit 2ae8f3a

Browse files
authored
Update ignite/engine/__init__.py
1 parent 1e90d97 commit 2ae8f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ignite/engine/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def create_supervised_trainer(
461461
amp_mode: can be ``amp`` or ``apex``, model and optimizer will be casted to float16 using
462462
`torch.cuda.amp <https://pytorch.org/docs/stable/amp.html>`_ for ``amp`` and
463463
using `apex <https://nvidia.github.io/apex>`_ for ``apex``. (default: None)
464-
scaler: GradScaler instance for gradient scaling if `torch>=1.12.0`
464+
scaler: GradScaler instance for gradient scaling if `torch>=1.6.0`
465465
and ``amp_mode`` is ``amp``. If ``amp_mode`` is ``apex``, this argument will be ignored.
466466
If True, will create default GradScaler. If GradScaler instance is passed, it will be used instead.
467467
(default: False)

0 commit comments

Comments
 (0)