def on_train_begin()

in realbook/callbacks/utilization.py [0:0]


    def on_train_begin(self, logs: Dict[Any, Any]) -> None:
        """
        Runs at the beginning of training. Only starts the measurement thread if a GPU
        is available.
        """
        if self.enable:
            super().on_train_begin(logs)