pub struct Node {
pub id: String,
pub local: String,
pub op: OpKind,
pub inputs: Vec<EdgeIdx>,
pub outputs: Vec<EdgeIdx>,
pub weight: Option<Format>,
pub binding: Vec<String>,
pub params: BTreeMap<String, String>,
pub layer: Option<usize>,
pub block: String,
pub state: Vec<(usize, StateAccess)>,
}Expand description
2026-09-28: One op instance.
Fields§
§id: String2026-09-28: Unique id, e.g. l3.attn.o_proj.
local: String2026-09-28: The id inside its block template, e.g. o_proj.
op: OpKind2026-09-28: The op.
inputs: Vec<EdgeIdx>2026-09-28: Input edges, in the op’s argument order.
outputs: Vec<EdgeIdx>2026-09-28: Output edges.
weight: Option<Format>2026-09-28: Weight format, for ops that read a linear weight.
binding: Vec<String>2026-09-28: Checkpoint modules this node reads (layers.3.mlp.down_proj), in order.
params: BTreeMap<String, String>2026-09-28: Op parameters from the template, e.g. top_k = "8".
layer: Option<usize>2026-09-28: The layer this node belongs to; None in the prologue and epilogue.
block: String2026-09-28: The block template it was instantiated from.
state: Vec<(usize, StateAccess)>2026-09-30: The states it touches: indices into Circuit::states, and how.
Trait Implementations§
impl Eq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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.