cuda_dump_memory_snapshot | R Documentation |
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.
cuda_dump_memory_snapshot(filepath)
filepath |
Character; the path to the file where the snapshot will be saved. |
None; snapshot is saved directly to the file.
if (torch_is_installed()) {
## Not run:
cuda_dump_memory_snapshot("snapshot.bin")
## End(Not run)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.