Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ get_backward_inputs
Function
get_backward_inputs
deepspeed/compile/patch_compiled_func.py:113–116 ·
view source on GitHub ↗
(frame_key=None)
Source
from the content-addressed store, hash-verified
111
112
113
def
get_backward_inputs(frame_key=None):
114
if
frame_key is None:
115
return
backward_inputs
116
return
backward_inputs.get(frame_key, [])
117
118
119
def
pop_backward_input(frame_key):
Callers
5
test_destroy_releases_only_owner_with_overlapping_frame_ids
Function · 0.90
test_destroyed_owner_inputs_cannot_be_consumed_by_survivor
Function · 0.90
test_deactivation_releases_only_the_engine_owned_state
Function · 0.90
test_launch_compile_passes_clears_owned_compiled_backward_state
Function · 0.90
test_unpatch_compiled_func_clears_backward_inputs
Function · 0.90
Calls
1
get
Method · 0.45
Tested by
5
test_destroy_releases_only_owner_with_overlapping_frame_ids
Function · 0.72
test_destroyed_owner_inputs_cannot_be_consumed_by_survivor
Function · 0.72
test_deactivation_releases_only_the_engine_owned_state
Function · 0.72
test_launch_compile_passes_clears_owned_compiled_backward_state
Function · 0.72
test_unpatch_compiled_func_clears_backward_inputs
Function · 0.72