pub struct GraphStats {
pub total_nodes: usize,
pub num_placeholders: usize,
pub num_variables: usize,
pub num_operations: usize,
pub max_depth: usize,
pub num_edges: usize,
pub num_differentiable: usize,
pub op_breakdown: Vec<(String, usize)>,
pub max_fan_in: usize,
pub max_fan_out: usize,
}Expand description
Statistics about a computation graph.
Fields§
§total_nodes: usizeTotal number of nodes
num_placeholders: usizeNumber of placeholder (input) nodes
num_variables: usizeNumber of variable (trainable parameter) nodes
num_operations: usizeNumber of operation nodes
max_depth: usizeMaximum topological rank (depth of the graph)
num_edges: usizeNumber of edges (connections between nodes)
num_differentiable: usizeNumber of differentiable nodes
op_breakdown: Vec<(String, usize)>Operation type breakdown: (op_name, count)
max_fan_in: usizeMaximum fan-in (most inputs to a single node)
max_fan_out: usizeMaximum fan-out (most nodes that depend on a single node)
Implementations§
Trait Implementations§
Source§impl Clone for GraphStats
impl Clone for GraphStats
Source§fn clone(&self) -> GraphStats
fn clone(&self) -> GraphStats
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 moreAuto Trait Implementations§
impl Freeze for GraphStats
impl RefUnwindSafe for GraphStats
impl Send for GraphStats
impl Sync for GraphStats
impl Unpin for GraphStats
impl UnsafeUnpin for GraphStats
impl UnwindSafe for GraphStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more