MCPcopy Create free account
hub / github.com/kyegomez/BitNet / forward

Method forward

bitnet/bit_transformer.py:142–148  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

140 self.norm = nn.LayerNorm(dim)
141
142 def forward(self, x):
143 x = self.emb(x)
144 # Post emb norm
145 x = self.norm(x)
146
147 x = self.transformer(x)
148 return self.to_logits(x)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected