torch.cuda.graphs.register_graph_capture_start_hook
- torch.cuda.graphs.register_graph_capture_start_hook(fn)
Register a hook run with each CUDA graph as its capture begins. Returns a RemovableHandle; call
.remove()to unregister.
Register a hook run with each CUDA graph as its capture begins. Returns a
RemovableHandle; call .remove() to unregister.
"global"RemovableHandle