Callback for time elapsed per epoch?

Is there a Callback that gives the time elapsed at the end of each epoch? I see that the printouts while the training is running show a timer, but I do not know how to access that number within the code.

It’s not accessible within the code no, though I guess you could write a callback to access it.

Would I have to create a new timer from scratch using something like time.time() or is there any way to get the same number? How is it generated?

It’s coming from fastprogress. You’d probably need to modify that library if you want to get it directly from there. Otherwise you’ll need to add another timer.

@sgugger, @jeremy is there a way to get the metrics printed per epoch when not using fastai v1 via notebooks?


Please don’t at-mention us like this.

Apologies. :flushed: