projects
/
culture.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b41d98a
)
Update.
author
François Fleuret
<francois@fleuret.org>
Wed, 17 Jul 2024 04:49:18 +0000
(06:49 +0200)
committer
François Fleuret
<francois@fleuret.org>
Wed, 17 Jul 2024 04:49:18 +0000
(06:49 +0200)
quiz_machine.py
patch
|
blob
|
history
diff --git
a/quiz_machine.py
b/quiz_machine.py
index
14e8739
..
bbd1b7b
100755
(executable)
--- a/
quiz_machine.py
+++ b/
quiz_machine.py
@@
-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(