SimpleExecutionTape

A simple ExecutionTape that records operations and can convert to a very simple linear graph. This is intentionally minimal to enable the RecorderExecution workflow; robust wiring is tracked in auto-graph-tasks.md and can replace this later.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val isRecording: Boolean

Whether this tape is currently recording operations

Link copied to clipboard
open override val operations: List<RecordedOperation>

All recorded operations on this tape

Functions

Link copied to clipboard
open override fun clear()

Clear all recorded operations

Link copied to clipboard
open override fun copy(): ExecutionTape

Create a copy of this tape

Link copied to clipboard
open override fun optimize(): ExecutionTape

Optimize the recorded operations (e.g., operation fusion, dead code elimination)

Link copied to clipboard
open override fun prune(keepOutputs: Set<String>): ExecutionTape

Prune unnecessary operations from the tape

Link copied to clipboard
open override fun <T : DType, V> recordOperation(operation: Operation, inputs: List<Tensor<T, V>>, outputs: List<Tensor<T, V>>)

Record an operation on this tape

Link copied to clipboard
open override fun <T : DType, V> replay(): List<Tensor<T, V>>

Replay all recorded operations

Link copied to clipboard
open override fun startRecording()

Start recording operations on this tape

Link copied to clipboard
open override fun stopRecording()

Stop recording operations on this tape