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