Update.
authorFrançois Fleuret <francois@fleuret.org>
Wed, 17 Jul 2024 04:49:18 +0000 (06:49 +0200)
committerFrançois Fleuret <francois@fleuret.org>
Wed, 17 Jul 2024 04:49:18 +0000 (06:49 +0200)
quiz_machine.py

index 14e8739..bbd1b7b 100755 (executable)
@@ -341,7 +341,7 @@ class QuizMachine:
                 ) < w_quizzes.size(0)
                 i = torch.randperm(quizzes.size(0), device=quizzes.device)
 
-                return quizzes[i], type_w[i]
+                return quizzes[i], from_w[i]
 
             else:
                 return w_quizzes, torch.full(