pub struct Node {
pub id: NodeId,
pub op: OpKind,
pub inputs: Vec<NodeId>,
pub shape: Vec<usize>,
}Expand description
Struct for a graph node in the ML operations sequence.
They are constructed
automatically by interacting with operations in a crate::graph::Graph struct.
Each node represents a particular action as determined by the
OpKind field.
§Examples
#TODO
Fields§
§id: NodeIdID of the current node.
This is automatically generated on Node creation.
op: OpKindOperation of the current node in the ML pipeline. See OpKind.
inputs: Vec<NodeId>Node IDs of the inputs to this operation.
shape: Vec<usize>Tensor dimensions (shape) of the output tensor produced by this node.
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 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