Pop captured real inputs for one DeepCompile frame.
(frame_key)
| 117 | |
| 118 | |
| 119 | def 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 | |
| 131 | def clear_backward_inputs(frame_keys=None): |