pub struct GraphNode {
pub op: Op,
pub inputs: Vec<usize>,
pub dtype: DtypeRepr,
pub shape: Shape,
}Fields§
§op: OpThis node’s operation.
inputs: Vec<usize>Indices of producer nodes in Graph::nodes; empty for Input.
dtype: DtypeReprThis node’s output dtype.
shape: ShapeOutput shape of this node. None in a slot means a dynamic/unknown
dimension (e.g. the batch axis).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphNode
impl !RefUnwindSafe for GraphNode
impl Send for GraphNode
impl Sync for GraphNode
impl Unpin for GraphNode
impl UnsafeUnpin for GraphNode
impl !UnwindSafe for GraphNode
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