MCPcopy
hub / github.com/state-spaces/mamba / backward

Method backward

mamba_ssm/ops/triton/k_activations.py:166–168  ·  view source on GitHub ↗
(ctx, dout)

Source from the content-addressed store, hash-verified

164
165 @staticmethod
166 def backward(ctx, dout):
167 xy, = ctx.saved_tensors
168 return _swiglu_bwd(xy, dout)
169
170
171swiglu = SwiGLU.apply

Calls 1

_swiglu_bwdFunction · 0.85