From 77a54844e8c23d422026a535d44890419f5718f1 Mon Sep 17 00:00:00 2001 From: golmschenk Date: Tue, 18 Jun 2024 15:03:02 -0400 Subject: [PATCH] Correct bug where if system configuration was not defined the train session would crash --- src/qusi/internal/train_session.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qusi/internal/train_session.py b/src/qusi/internal/train_session.py index d96d884..9ed4260 100644 --- a/src/qusi/internal/train_session.py +++ b/src/qusi/internal/train_session.py @@ -48,6 +48,8 @@ def train_session( """ if hyperparameter_configuration is None: hyperparameter_configuration = TrainHyperparameterConfiguration.new() + if system_configuration is None: + system_configuration = TrainSystemConfiguration.new() if logging_configuration is None: logging_configuration = TrainLoggingConfiguration.new() if loss_function is None: