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

Method forward

transformer.py:148–149  ·  view source on GitHub ↗
(self, input: Tensor)

Source from the content-addressed store, hash-verified

146 self.weight = nn.Parameter(T.ones((dim,)))
147
148 def forward(self, input: Tensor) -> Tensor:
149 return F.layer_norm(input, (self.weight.shape[0],), weight=self.weight, bias=None, eps=self.eps)
150
151
152class FFNN(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected