def METHOD_NAME(self):
    """Log hp_metric to tensorboard for hparams selection."""
    hp_metric = self.trainer.callback_metrics.get("val_loss", None)
    if hp_metric is not None:
        self.trainer.logger.log_metrics(
            {"hp_metric": hp_metric}, step=self.trainer.global_step
        )