mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-29 13:30:57 +08:00
finished callbacks
This commit is contained in:
1 parent
839c9da5b5
commit
55a305e43c
1 file changed
+6
-6
@@ -1,15 +1,13 @@
|
||||
"""
|
||||
Callbacks
|
||||
=========
|
||||
|
||||
====================================
|
||||
Callbacks supported by Lightning
|
||||
"""
|
||||
|
||||
import logging
|
||||
import os
|
||||
import shutil
|
||||
import logging
|
||||
import warnings
|
||||
|
||||
import numpy as np
|
||||
|
||||
from pytorch_lightning.overrides.data_parallel import LightningDistributedDataParallel
|
||||
@@ -165,7 +163,9 @@ class EarlyStopping(Callback):
|
||||
|
||||
|
||||
class ModelCheckpoint(Callback):
|
||||
r"""Save the model after every epoch.
|
||||
r"""
|
||||
|
||||
Save the model after every epoch.
|
||||
|
||||
Args:
|
||||
filepath (str): path to save the model file.
|
||||
@@ -403,4 +403,4 @@ class GradientAccumulationScheduler(Callback):
|
||||
# should_stop = c.on_epoch_end(i, logs={'val_loss': loss})
|
||||
# logging.info(loss)
|
||||
# if should_stop:
|
||||
# break
|
||||
# break
|
||||
Reference in new issue
Block a user