Rate this Page

torch.cuda.graphs.graph_destroy_hooks_active#

torch.cuda.graphs.graph_destroy_hooks_active()[source]#

True when any graph-destroy hook is registered – the gate a CUDAGraph checks before arming its destroy callback.

Return type:

bool