mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
oops, forgot some stars
This commit is contained in:
@@ -45,9 +45,9 @@ class TransformerBlock:
|
||||
x = x + x.layernorm().linear(*self.ln2).linear(*self.ff1).gelu().linear(*self.ff2).dropout(0.1)
|
||||
else:
|
||||
x = x + self.attn(x).dropout(0.1)
|
||||
x = x.layernorm().linear(self.ln1)
|
||||
x = x + x.linear(self.ff1).relu().linear(self.ff2).dropout(0.1)
|
||||
x = x.layernorm().linear(self.ln2)
|
||||
x = x.layernorm().linear(*self.ln1)
|
||||
x = x + x.linear(*self.ff1).relu().linear(*self.ff2).dropout(0.1)
|
||||
x = x.layernorm().linear(*self.ln2)
|
||||
return x
|
||||
|
||||
class Transformer:
|
||||
|
||||
Reference in New Issue
Block a user