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

Function end_backward

csrc/compile/deepcompile.cpp:196–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void end_backward(const c10::IValue& deps, long graph_id, bool release_reduce_buckets)
197{
198 auto executor = getExecutor<CustomOpExecutor>(graph_id, executors);
199 executor->endBackward();
200 if (release_reduce_buckets) {
201 // reduce_buckets is shared across graph executors, so release it once
202 // after the final backward graph has flushed its pending reductions.
203 reduce_buckets->clear();
204 }
205}
206
207void end_backward_meta(const c10::IValue& deps, long graph_id, bool release_reduce_buckets) {}
208

Callers

nothing calls this directly

Calls 2

endBackwardMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected