# CUDAGraph

Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.graphs.CUDAGraph.html

# CUDAGraph

class tensorplay.cuda.graphs.CUDAGraph[[source]](../_modules/tensorplay/cuda/graphs.html#CUDAGraph)

Wrapper around a CUDA graph, mirroring torch.cuda.CUDAGraph.

instantiate()[[source]](../_modules/tensorplay/cuda/graphs.html#CUDAGraph.instantiate)

Compile the captured template (happens automatically at replay).

reset()[[source]](../_modules/tensorplay/cuda/graphs.html#CUDAGraph.reset)

Destroy the executable and free its private memory pool.

All tensors allocated during the capture must be released first.
