Package-level declarations

Types

Link copied to clipboard
class CompositeSink(sinks: List<OpSink>) : OpSink

Composite sink that fans out traces to multiple sinks in order. Intentionally simple for hot path performance.

Link copied to clipboard
object NoOpSink : OpSink

No-op sink: ignores all traces.

Link copied to clipboard

OpAttributeFactory provides methods to generate operation attributes for tracing. It captures metadata about tensor operations for graph construction and optimization.

Link copied to clipboard
interface OpSink

OpSink consumes operation execution traces emitted by TracingTensorOps. Kept in core so it can be used without depending on graph/tape implementations.

Link copied to clipboard
data class OpTrace(val opType: String, val inputs: List<TensorRef>, val outputs: List<TensorRef>, val attributes: Map<String, Any?> = emptyMap())

OpTrace represents a single tensor operation execution with its inputs, outputs, and attributes. This is the core data structure for capturing computation graphs during execution.

Link copied to clipboard
data class TensorRef(val id: String, val shape: Shape, val dtype: DType)

TensorRef represents a reference to a tensor in the computation graph. It captures the essential metadata needed for graph construction and optimization.

Link copied to clipboard
open class TraceSession

TraceSession manages tensor references during computation graph tracing. It provides methods to convert tensors to TensorRef objects for graph capture.