Merge pull request #12685 from CutieCat6778/patch-1

Skip loop iteration if train_queue is empty
This commit is contained in:
Matthias
2026-01-06 10:15:50 +01:00
committed by GitHub

View File

@@ -227,6 +227,10 @@ class IFreqaiModel(ABC):
"""
while not self._stop_event.is_set():
time.sleep(1)
if not self.train_queue:
continue
pair = self.train_queue[0]
# ensure pair is available in dp