in realbook/callbacks/utilization.py [0:0]
def on_train_begin(self, logs: Dict[Any, Any]) -> None: """ Runs at the beginning of training and starts the measurement thread. """ self.measurement_thread.start()