torch.cuda.export_dot
-
torch.cuda.export_dot(path, *, verbose=True)[source] -
Возвращает хук завершения захвата, который сохраняет захваченный граф в
pathв формате Graphviz DOT. Зарегистрируйте его с помощьюCUDAGraph.register_capture_end_hook(); работает в обоих режимахkeep_graph, поскольку выполняется, пока шаблон ещё активен.
© 2026, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.14/generated/torch.cuda.export_dot.html