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

Method backward

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

Source from the content-addressed store, hash-verified

294
295 @staticmethod
296 def backward(ctx, grad_output):
297 input, = ctx.saved_tensors
298 return sqrelu_bwd(grad_output, input)
299
300
301sqrelu = SquaredReLUFunction.apply

Callers

nothing calls this directly

Calls 1

sqrelu_bwdFunction · 0.70

Tested by

no test coverage detected