From e007a791a334a54211fa1d0518409c9f1c8b8b84 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martyna=20Wi=C4=85cek?= <martyna.wiacek@ipipan.waw.pl>
Date: Sun, 4 Feb 2024 01:24:28 +0100
Subject: [PATCH] fixed passing batch size when default model is initialized

---
 combo/main.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/combo/main.py b/combo/main.py
index 261e797..3884f05 100755
--- a/combo/main.py
+++ b/combo/main.py
@@ -161,7 +161,7 @@ def get_defaults(dataset_reader: Optional[DatasetReader],
                                                    )
 
     if not training_data_loader:
-        training_data_loader = default_data_loader(dataset_reader, training_data_path)
+        training_data_loader = default_data_loader(dataset_reader, training_data_path, FLAGS.batch_size)
     else:
         if training_data_path:
             training_data_loader.data_path = training_data_path
@@ -170,7 +170,7 @@ def get_defaults(dataset_reader: Optional[DatasetReader],
                            str(training_data_loader.data_path), prefix=prefix)
 
     if FLAGS.validation_data_path and not validation_data_loader:
-        validation_data_loader = default_data_loader(dataset_reader, validation_data_path)
+        validation_data_loader = default_data_loader(dataset_reader, validation_data_path, FLAGS.batch_size)
     elif FLAGS.validation_data_path and validation_data_loader:
         if validation_data_path:
             validation_data_loader.data_path = validation_data_path
-- 
GitLab