projects
/
picoclvr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4540ede
)
Update.
author
François Fleuret
<francois@fleuret.org>
Thu, 20 Jul 2023 11:40:12 +0000
(13:40 +0200)
committer
François Fleuret
<francois@fleuret.org>
Thu, 20 Jul 2023 11:40:12 +0000
(13:40 +0200)
tasks.py
patch
|
blob
|
history
diff --git
a/tasks.py
b/tasks.py
index
a97ec2e
..
889d4a9
100755
(executable)
--- a/
tasks.py
+++ b/
tasks.py
@@
-34,7
+34,7
@@
def masked_inplace_autoregression(
batches,
dynamic_ncols=True,
desc=progress_bar_desc,
-
# total=input.size(0
) // batch_size,
+
total=(input.size(0) + batch_size - 1
) // batch_size,
)
with torch.autograd.no_grad():