pub struct Node {
pub id: NodeId,
pub op: Op,
pub inputs: Vec<NodeId>,
pub shape: Shape,
pub name: Option<String>,
pub origin: Option<NodeOrigin>,
}Expand description
A single node in the computation graph.
Fields§
§id: NodeId§op: OpThe operation this node performs.
inputs: Vec<NodeId>Input node IDs (operands). Order matches Op::num_inputs().
shape: ShapeOutput tensor shape (computed at construction time).
name: Option<String>Human-readable name for debugging.
origin: Option<NodeOrigin>Cross-stage provenance (HIR block, fusion pass, …).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin 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