mindscience.utils.log_timer

mindscience.utils.log_timer(func)[source]

A decorator that calculates the end-to-end total time of the training step.

Parameters

func (callable) – The function to decorate. Should be a callable object.

Returns

callable. The decorated function.