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 !RefUnwindSafe for GraphNode
impl !UnwindSafe for GraphNode
impl Freeze for GraphNode
impl Send for GraphNode
impl Sync for GraphNode
impl Unpin for GraphNode
impl UnsafeUnpin 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