Skip to content

Commit 9b21ecb

Browse files
authored
Add warning section for checkpoint_callback in Trainer docs (#10041)
1 parent ed98026 commit 9b21ecb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/source/common/trainer.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,9 @@ Example::
516516
checkpoint_callback
517517
^^^^^^^^^^^^^^^^^^^
518518

519-
Deprecated: This has been deprecated in v1.5 and will be removed in v1.7. Please use ``enable_checkpointing`` instead.
519+
.. warning:: `checkpoint_callback` has been deprecated in v1.5 and will be removed in v1.7.
520+
To disable checkpointing, pass ``enable_checkpointing = False`` to the Trainer instead.
521+
520522

521523
default_root_dir
522524
^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)