Calls cuda_memory_snapshot()
and saves the resulting binary snapshot
to a specified file using writeBin
. The resulting file can be visualized using the interactive
snapshot viewer available at pytorch.org/memory_viz.
Examples
if (torch_is_installed()) {
if (FALSE) { # \dontrun{
cuda_dump_memory_snapshot("snapshot.bin")
} # }
}