MCPcopy Create free account
hub / github.com/Standard-Intelligence/hertz-dev / forward

Method forward

transformer.py:378–381  ·  view source on GitHub ↗
(self, x: Tensor)

Source from the content-addressed store, hash-verified

376 self.cache = [None] * len(self.cache)
377
378 def forward(self, x: Tensor) -> Tensor:
379 for l, layer in enumerate(self.layers):
380 x = layer(x, kv=self.cache[l])
381 return x

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected