torch.cuda.export_dot
- torch.cuda.export_dot(path, *, verbose=True)
Return a capture-end hook that dumps the captured graph to
pathin Graphviz DOT format. Register it withCUDAGraph.register_capture_end_hook(); works for both modes since it runs while the template is still live.