def METHOD_NAME(self) -> None:
    seed = self.config.training.seed
    if seed is None:
        return
    torch.backends.cudnn.deterministic = True
    torch.backends.cudnn.benchmark = self.config.training.cudnn_benchmark