Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
sailist committed Mar 12, 2023
1 parent 1bbfe63 commit 6772eaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lumo/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
# overwrite send_to_device to resolve https://github.com/pytorch/pytorch/issues/83015
# from accelerate import Accelerator
# from accelerate.utils import send_to_device
from ..utils.fmt import strftime

ParamsType = TrainerParams


Expand Down Expand Up @@ -514,7 +516,7 @@ def to_device(self, item: Optional[Union[nn.Module, torch.Tensor, Sequence, Mapp

def on_trainer_exception(self, func: Callable, exception: BaseException):
"""Updates database with error information when an exception occurs during training."""
self.exp.dump_info('exception', dict(end=datetime.now(),
self.exp.dump_info('exception', dict(end=strftime(),
finished=False,
error=str(exception),
trainer_frame=str(func)))
Expand Down

0 comments on commit 6772eaf

Please sign in to comment.