torch.cuda.graphs.run_graph_destroy_hooks#
- torch.cuda.graphs.run_graph_destroy_hooks(exec_graph_ids)[source]#
Invoke every registered hook with the destroyed exec graph ids, swallowing per-hook errors so one failure does not abort the rest (matching the destroy-callback fire semantics). The single entry point a graph’s destroy callback calls.