From: François Fleuret Date: Sat, 10 Aug 2024 08:51:12 +0000 (+0200) Subject: Update. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=540927e2268ae78ef6ee41259a685ee008bb9c68;p=culture.git Update. --- diff --git a/mygpt.py b/mygpt.py index 7827757..041d28c 100755 --- 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: