pub struct GraphSummary {
pub node_count: usize,
pub tensor_count: usize,
pub output_count: usize,
pub input_count: usize,
pub max_fan_in: usize,
pub max_fan_out: usize,
pub depth: usize,
pub op_counts: HashMap<String, usize>,
}Expand description
Lightweight statistics computed from an EinsumGraph.
Fields§
§node_count: usizeNumber of computation nodes.
tensor_count: usizeNumber of named tensors.
output_count: usizeNumber of graph outputs.
input_count: usizeNumber of graph inputs.
max_fan_in: usizeMaximum fan-in (number of inputs) across all nodes.
max_fan_out: usizeMaximum fan-out (number of outputs) across all nodes.
depth: usizeLongest path through the dataflow graph (in nodes).
op_counts: HashMap<String, usize>Operation type distribution.
Implementations§
Source§impl GraphSummary
impl GraphSummary
Trait Implementations§
Source§impl Clone for GraphSummary
impl Clone for GraphSummary
Source§fn clone(&self) -> GraphSummary
fn clone(&self) -> GraphSummary
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 GraphSummary
impl RefUnwindSafe for GraphSummary
impl Send for GraphSummary
impl Sync for GraphSummary
impl Unpin for GraphSummary
impl UnsafeUnpin for GraphSummary
impl UnwindSafe for GraphSummary
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