projects
/
picoclvr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aee508
)
Update.
author
François Fleuret
<francois@fleuret.org>
Fri, 7 Jul 2023 11:55:08 +0000
(13:55 +0200)
committer
François Fleuret
<francois@fleuret.org>
Fri, 7 Jul 2023 11:55:08 +0000
(13:55 +0200)
tasks.py
patch
|
blob
|
history
diff --git
a/tasks.py
b/tasks.py
index
affc8cd
..
3a4a164
100755
(executable)
--- a/
tasks.py
+++ b/
tasks.py
@@
-225,6
+225,10
@@
class PicoCLVR(Task):
primer += [primer_descr + " <img>"] * nb_per_primer
result = self.tensorize(primer)
+ fill = result.new_full(
+ result.size()[:-1] + (self.height * self.width,), self.t_nul
+ )
+ result = torch.cat((result, fill), 1)
ar_mask = (result == self.t_nul).long()
masked_inplace_autoregression(
model,