projects
/
culture.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9906ea
)
Update.
author
François Fleuret
<francois@fleuret.org>
Mon, 22 Jul 2024 04:38:40 +0000
(06:38 +0200)
committer
François Fleuret
<francois@fleuret.org>
Mon, 22 Jul 2024 04:38:40 +0000
(06:38 +0200)
quiz_machine.py
patch
|
blob
|
history
diff --git
a/quiz_machine.py
b/quiz_machine.py
index
5f14528
..
c73b6d0
100755
(executable)
--- a/
quiz_machine.py
+++ b/
quiz_machine.py
@@
-73,7
+73,8
@@
def one_batch_masked_inplace_autoregression(
logits = output[:, s]
- logits = logit_transformer(s, logits).log_softmax(dim=-1)
+ if logit_transformer is not None:
+ logits = logit_transformer(s, logits).log_softmax(dim=-1)
if deterministic_synthesis:
t_next = logits.argmax(-1)