pub struct ComputeNode {
pub id: usize,
pub node_type: Type,
pub name: String,
pub children: Vec<usize>,
pub grad_level: u8,
pub inline: bool,
pub grad_child: Option<usize>,
pub grad_parents: Vec<usize>,
pub op: Option<Operator>,
}Expand description
The main data structure of the ComputeGraph
Fields§
§id: usize§node_type: Type§name: String§children: Vec<usize>§grad_level: u8§inline: bool§grad_child: Option<usize>§grad_parents: Vec<usize>§op: Option<Operator>Implementations§
Trait Implementations§
Source§impl Clone for ComputeNode
impl Clone for ComputeNode
Source§fn clone(&self) -> ComputeNode
fn clone(&self) -> ComputeNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComputeNode
impl Debug for ComputeNode
Auto Trait Implementations§
impl Freeze for ComputeNode
impl RefUnwindSafe for ComputeNode
impl Send for ComputeNode
impl Sync for ComputeNode
impl Unpin for ComputeNode
impl UnwindSafe for ComputeNode
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