projects
/
culture.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
702e672
)
Update.
author
François Fleuret
<francois@fleuret.org>
Mon, 24 Jun 2024 11:48:01 +0000
(13:48 +0200)
committer
François Fleuret
<francois@fleuret.org>
Mon, 24 Jun 2024 11:48:01 +0000
(13:48 +0200)
tasks.py
patch
|
blob
|
history
diff --git
a/tasks.py
b/tasks.py
index
5edb472
..
64fe967
100755
(executable)
--- a/
tasks.py
+++ b/
tasks.py
@@
-154,6
+154,9
@@
class World(Task):
self.nb_batch_samples_world = input.size(0)
self.nb_batch_samples_quizzes = 0
+ # Shuffle
+ input = input[torch.randperm(input.size(0))]
+
if desc is None:
desc = f"epoch-{split}"
for batch in tqdm.tqdm(