pub struct Edge {
pub id: String,
pub format: Format,
pub rows: DimExpr,
pub dim: DimExpr,
pub dim_value: u64,
pub producer: Option<NodeIdx>,
pub consumers: Vec<NodeIdx>,
pub is_output: bool,
pub binds: Option<ModelBuffer>,
}Expand description
2026-09-28: One tensor between nodes: rows x dim in format. rows is an expression
over n, the step’s row count, and the arch dims (e.g. n*top_k).
Fields§
§id: String2026-09-28: Unique id, e.g. l3.attn.q or stream.4.
format: Format2026-09-28: Element format.
rows: DimExpr2026-09-28: Row expression; reads n.
dim: DimExpr2026-09-28: Feature dimension expression.
dim_value: u642026-09-28: dim evaluated under the arch dims.
producer: Option<NodeIdx>2026-09-28: The node that writes it; None for none (refused by the loader).
consumers: Vec<NodeIdx>2026-09-28: The nodes that read it, in node order.
is_output: bool2026-09-28: Read outside the circuit (the logits); never fused away.
binds: Option<ModelBuffer>2026-09-30: The model buffer a declared output lands in; None for an output declared
without one (the executor refuses such a program) and for every other edge.
Trait Implementations§
impl Eq for Edge
impl StructuralPartialEq for Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnwindSafe for Edge
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.