mirror of https://github.com/commaai/tinygrad.git
oops, forgot some stars
This commit is contained in:
parent
908db3bdea
commit
c39824bc62
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue