MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / pop_backward_input

Function pop_backward_input

deepspeed/compile/patch_compiled_func.py:119–128  ·  view source on GitHub ↗

Pop captured real inputs for one DeepCompile frame.

(frame_key)

Source from the content-addressed store, hash-verified

117
118
119def pop_backward_input(frame_key):
120 """Pop captured real inputs for one DeepCompile frame."""
121 frame_inputs = backward_inputs.get(frame_key)
122 if not frame_inputs:
123 return None
124
125 inputs = frame_inputs.pop()
126 if not frame_inputs:
127 backward_inputs.pop(frame_key)
128 return inputs
129
130
131def clear_backward_inputs(frame_keys=None):

Calls 2

popMethod · 0.80
getMethod · 0.45