pub struct GraphStats {
pub tensor_count: usize,
pub node_count: usize,
pub output_count: usize,
pub einsum_count: usize,
pub elem_unary_count: usize,
pub elem_binary_count: usize,
pub reduce_count: usize,
pub avg_inputs_per_node: f64,
}Expand description
Statistics about an EinsumGraph.
Fields§
§tensor_count: usizeNumber of tensors
node_count: usizeNumber of nodes
output_count: usizeNumber of output tensors
einsum_count: usizeNumber of einsum operations
elem_unary_count: usizeNumber of element-wise unary operations
elem_binary_count: usizeNumber of element-wise binary operations
reduce_count: usizeNumber of reduction operations
avg_inputs_per_node: f64Average inputs per node
Implementations§
Source§impl GraphStats
impl GraphStats
Sourcepub fn compute(graph: &EinsumGraph) -> Self
pub fn compute(graph: &EinsumGraph) -> Self
Compute statistics for a graph.
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 moreSource§impl Debug for GraphStats
impl Debug for GraphStats
Source§impl PartialEq for GraphStats
impl PartialEq for GraphStats
impl StructuralPartialEq for GraphStats
Auto Trait Implementations§
impl Freeze for GraphStats
impl RefUnwindSafe for GraphStats
impl Send for GraphStats
impl Sync for GraphStats
impl Unpin 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