pub struct StatSpec {
pub out_idx: usize,
pub site: String,
pub role: &'static str,
pub stat: &'static str,
pub len: usize,
pub numel: usize,
pub flops: u64,
}Expand description
One appended output: where it is in graph.outputs, and what it means.
Fields§
§out_idx: usizeIndex into the compiled graph’s output list (== index into run()’s
returned Vec<Vec<f32>>).
site: StringOp-site label (node name, or matmul#<id>).
role: &'static strTensor role at the site: "lhs", "rhs", or "out".
stat: &'static strSketch kind: min/max/mean/l1/sumsq/nnz/hist/
chan_maxabs/pos_sumsq.
len: usizeElement count of this sketch (1 for scalars, bins/C/rows for
vectors).
numel: usizeElement count of the source tensor (for density / normalization).
flops: u64FLOPs of the op at this site (2·M·K·N for a matmul; 0 for non-matmul
taps). Lets the opportunity miner weight recurrence by cost.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StatSpec
impl RefUnwindSafe for StatSpec
impl Send for StatSpec
impl Sync for StatSpec
impl Unpin for StatSpec
impl UnsafeUnpin for StatSpec
impl UnwindSafe for StatSpec
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