projects
/
culture.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67a01a0
)
Update.
author
François Fleuret
<francois@fleuret.org>
Sat, 10 Aug 2024 08:51:12 +0000
(10:51 +0200)
committer
François Fleuret
<francois@fleuret.org>
Sat, 10 Aug 2024 08:51:12 +0000
(10:51 +0200)
mygpt.py
patch
|
blob
|
history
diff --git
a/mygpt.py
b/mygpt.py
index
7827757
..
041d28c
100755
(executable)
--- a/
mygpt.py
+++ b/
mygpt.py
@@
-26,7
+26,7
@@
class BSQ(nn.Module):
self.L = L
def forward(self, input, indexes=False):
- norm = input.pow(2).sum(dim=
1
, keepdim=True).sqrt()
+ norm = input.pow(2).sum(dim=
2
, keepdim=True).sqrt()
u = input / norm
if indexes: