MCPcopy Create free account
hub / github.com/BICLab/SpikingBrain-7B / forward

Method forward

W8ASpike/activations.py:258–260  ·  view source on GitHub ↗
(ctx, input)

Source from the content-addressed store, hash-verified

256 @staticmethod
257 # bias is an optional argument
258 def forward(ctx, input):
259 ctx.save_for_backward(input)
260 return gelu_fwd(input)
261
262 @staticmethod
263 def backward(ctx, grad_output):

Callers

nothing calls this directly

Calls 1

gelu_fwdFunction · 0.70

Tested by

no test coverage detected