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

Method step

bitnet/bit_mamba.py:182–193  ·  view source on GitHub ↗
(self, x, cache)

Source from the content-addressed store, hash-verified

180 return output
181
182 def step(self, x, cache):
183 # x : (B, D)
184 # cache : (h, inputs)
185 # h : (B, ED, N)
186 # inputs: (B, ED, d_conv-1)
187
188 # output : (B, D)
189 # cache : (h, inputs)
190
191 output, cache = self.mixer.step(self.norm(x), cache)
192 output = output + x
193 return output, cache
194
195
196class MambaBlock(nn.Module):

Callers

nothing calls this directly

Calls 1

stepMethod · 0.45

Tested by

no test coverage detected