We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e721f23 commit 00fa20aCopy full SHA for 00fa20a
src/pytorch_lightning/trainer/connectors/callback_connector.py
@@ -247,7 +247,7 @@ def _reorder_callbacks(callbacks: List[Callback]) -> List[Callback]:
247
A new list in which the last elements are Checkpoint if there were any present in the
248
input.
249
"""
250
- checkpoints: List[Checkpoint] = [c for c in callbacks if isinstance(c, Checkpoint)]
+ checkpoints: List[Callback] = [c for c in callbacks if isinstance(c, Checkpoint)]
251
not_checkpoints = [c for c in callbacks if not isinstance(c, Checkpoint)]
252
return not_checkpoints + checkpoints
253
0 commit comments