added safeguards for callbacks in loading saving
This commit is contained in:
parent
8a3abec83a
commit
98c112598e
|
@ -57,10 +57,8 @@ class TrainerIO(object):
|
|||
'global_step': self.global_step
|
||||
}
|
||||
|
||||
from pytorch_lightning.utils.debugging import ForkedPdb
|
||||
ForkedPdb().set_trace()
|
||||
if self.checkpoint_callback is not None:
|
||||
checkpoint['checkpoint_callback_best'] = self.checkpoint_callback_best.best
|
||||
checkpoint['checkpoint_callback_best'] = self.checkpoint_callback.best
|
||||
|
||||
if self.early_stop_callback is not None:
|
||||
checkpoint['early_stop_callback_wait'] = self.early_stop_callback.wait
|
||||
|
|
Loading…
Reference in New Issue