| 194 | } |
| 195 | |
| 196 | void 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 | |
| 207 | void end_backward_meta(const c10::IValue& deps, long graph_id, bool release_reduce_buckets) {} |
| 208 |
nothing calls this directly
no test coverage detected