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

Method backward

hf_7B_model/activations.py:263–266  ·  view source on GitHub ↗
(ctx, grad_output)

Source from the content-addressed store, hash-verified

261
262 @staticmethod
263 def backward(ctx, grad_output):
264 (input,) = ctx.saved_tensors
265 tmp = gelu_bwd(grad_output, input)
266 return tmp
267
268
269fast_gelu_impl = FastGeLUFunction.apply

Callers

nothing calls this directly

Calls 1

gelu_bwdFunction · 0.70

Tested by

no test coverage detected