Functions
Link copied to clipboard
Eager-only: no recording.
Link copied to clipboard
fun graph(baseOps: TensorOps = VoidTensorOps(), graph: ComputeGraph = DefaultComputeGraph()): DefaultGraphExecutionContext
Graph-only preset: build graph online using GraphSink.
Link copied to clipboard
fun tape(baseOps: TensorOps = VoidTensorOps(), tapeFactory: (GraphExecutionContext) -> ExecutionTape = { _ -> DefaultExecutionTape() }): DefaultGraphExecutionContext
Tape-only preset: tape is created on startRecording(); traces are appended via TapeSink.
Link copied to clipboard
fun tapeAndGraph(baseOps: TensorOps = VoidTensorOps(), graph: ComputeGraph = DefaultComputeGraph(), tapeFactory: (GraphExecutionContext) -> ExecutionTape = { _ -> DefaultExecutionTape() }): DefaultGraphExecutionContext
Composite preset: graph online; when recording also append to tape.