TensorPlay

Latest development documentation · Updated 2026-09-08. A documentation snapshot for package 1.0.0.dev20260909 is not available.

On this page

tensorplay.cuda.graphs.graph

tensorplay.cuda.graphs.graph(cuda_graph, pool=None, stream=None, capture_error_mode='global')[source]

Context-manager that captures CUDA work into a tensorplay.cuda.CUDAGraph.

Parameters:
  • cuda_graph (CUDAGraph) – the graph object to capture into.

  • poolNone gives the graph its own private memory pool; an id from graph_pool_handle() (or another graph / its pool_id property) shares that pool so allocations from both captures can recycle each other’s space.

  • stream (Stream, optional) – custom capture stream; defaults to the runtime’s dedicated per-device side stream (the legacy default stream cannot capture).

  • capture_error_mode (str, optional) – see CUDAGraph.capture_begin().

Search documentation

Search all 1,743 documentation pages.

Keyboard shortcuts

Global

  • /Focus search
  • ?This dialog
  • ,Open settings
  • jAI assistant

Search

  • Navigate results
  • Open result
  • escClose

Package

  • mMain information
  • dDocs
  • .Code
  • -Changelog
  • tTimeline
  • sStats
  • vVersions