skip best_model_path if checkpoint_callback is None (#2962)
* skip best_model_path if checkpoint_callback is None * removed test
This commit is contained in:
parent
e4e60e9b82
commit
8be002ccc7
|
@ -67,7 +67,8 @@ class TPUBackend(Accelerator):
|
|||
last_path = self.mp_queue.get()
|
||||
|
||||
# transfer back the best path to the trainer
|
||||
self.trainer.checkpoint_callback.best_model_path = best_path
|
||||
if self.trainer.checkpoint_callback is not None:
|
||||
self.trainer.checkpoint_callback.best_model_path = best_path
|
||||
# todo, pass also bets score
|
||||
|
||||
# load last weights
|
||||
|
|
Loading…
Reference in New Issue