Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MzeroMiko/mamba-mini
/ save_for_backward
Method
save_for_backward
test_selective_scan.py:108–109 ·
view source on GitHub ↗
(ctx, *args)
Source
from the content-addressed store, hash-verified
106
107
@classmethod
108
def
save_for_backward(ctx, *args):
109
ctx.saved_tensors = args
110
111
@staticmethod
112
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
Callers
1
forward
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected