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

Method forward

bitnet/one_bit_vision_transformers.py:74–79  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

72 )
73
74 def forward(self, x):
75 for attn, ff in self.layers:
76 x, _, _ = attn(x)
77 x = self.norm(x) + x
78 x = ff(x) + x
79 return self.norm(x)
80
81
82class OneBitViT(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected