GraphExecutionContext

Context for managing execution state, including mode switching, device management, and memory management.

Inheritors

Properties

Link copied to clipboard
abstract val baseOps: TensorOps
Link copied to clipboard
abstract val createTapeFactory: (executionContext: GraphExecutionContext) -> ExecutionTape
Link copied to clipboard
abstract val currentTape: ExecutionTape?

Current execution tape (null if not recording)

Link copied to clipboard

Whether operations should be recorded

Link copied to clipboard
abstract val tapeStack: TapeStack

Tape stack for nested execution contexts

Functions

Link copied to clipboard
abstract fun collectGarbage()

Force garbage collection

Link copied to clipboard
abstract fun resetExecutionStats()

Reset execution statistics