pub struct Node {
pub op: Op,
pub inputs: Vec<NodeId>,
pub shape: Shape,
pub dtype: DType,
}Expand description
A single node in the graph: an operation and the IDs of its inputs. The node also caches its output shape and dtype so downstream builders can validate without walking back through the graph.
Fields§
§op: Op§inputs: Vec<NodeId>§shape: Shape§dtype: DTypeTrait Implementations§
Auto Trait Implementations§
impl Forget for Node
impl Freeze for Nodewhere
*const usize is !null: Freeze,
PhantomData<usize>: Freeze,
*const DynAxis is !null: Freeze,
PhantomData<DynAxis>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(usize, usize)>: Freeze,
PhantomData<f64>: Freeze,
PhantomData<NodeId>: Freeze,
impl Move for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Nodewhere
*const usize is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
*const DynAxis is !null: UnsafeUnpin,
PhantomData<DynAxis>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(usize, usize)>: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
PhantomData<NodeId>: UnsafeUnpin,
impl UnwindSafe for Nodewhere
NonNull<usize>: UnwindSafe,
usize: UnwindSafe,
NonNull<DynAxis>: UnwindSafe,
DynAxis: UnwindSafe,
RawVecInner: UnwindSafe,
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