Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Feb 1, 2021
1 parent 7c907f4 commit e22d74f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/source/common/trainer.rst
Expand Up @@ -515,7 +515,9 @@ callbacks
|
Add a list of :class:`~pytorch_lightning.callbacks.Callback`.
Add a list of :class:`~pytorch_lightning.callbacks.Callback`. Callbacks run sequentially in the order defined here
with the exception of :class:`~pytorch_lightning.callbacks.model_checkpoint.ModelCheckpoint` callbacks which run
after all others to ensure all states are saved to the checkpoints.
.. code-block:: python
Expand Down
1 change: 1 addition & 0 deletions pytorch_lightning/trainer/connectors/callback_connector.py
Expand Up @@ -111,6 +111,7 @@ def attach_model_logging_functions(self, model):
callback.log = model.log
callback.log_dict = model.log_dict


def _tail_checkpoint_callbacks(callbacks: List[Callback]) -> List[Callback]:
"""
Moves all ModelCheckpoint callbacks to the end of the list. The sequential order within the group of
Expand Down

0 comments on commit e22d74f

Please sign in to comment.