Skip to content
class

TraceGraph

TraceGraph

Ordered list of OpNode records produced by one trace.

Attributes

opsstd::vector<OpNode>
Nodes appended in dispatch order. The list defines a DAG via tensor ids — node j depends on node i iff one of ops[j].inputs equals one of the ids in ops[i].outputs.
next_idTensorId
Monotonic counter the Tracer uses to mint fresh ids when wiring outputs. Owned by TraceGraph so concurrent traces on different threads have independent id spaces.

Notes

Aggregate. Phase 1.2 attaches an MpsBuilder cache entry keyed by hash(ops) rather than mutating this struct.