pub struct StatConfig {
pub hist_bins: usize,
pub hist_min: f32,
pub hist_max: f32,
pub hist_normalize: bool,
pub per_channel: bool,
pub per_position: bool,
pub adjacency: bool,
}Expand description
Which sketches to append per tapped tensor.
Fields§
§hist_bins: usizeValue-histogram bin count.
hist_min: f32Histogram lower / upper edge, used only when hist_normalize is off.
hist_max: f32§hist_normalize: boolScale-normalize the histogram: bin x / (max|x| + eps) over [-1, 1]
so the shape is comparable regardless of tensor scale. Fixes fixed-range
over-reporting “spiky” on tightly-scaled weights. One extra pass in-graph.
per_channel: boolPer-last-axis max|x| — the per-channel outlier signal (quant headroom).
per_position: boolPer-row (reduce the last axis) sum-of-squares — the sequence/position energy profile (sinks, decay, per-token sparsity).
adjacency: boolAdjacent-row diff energy along axis 0 — within-call sequence coherence (adjacent rows/tokens similar → delta-compute exploit). 2-D tensors only.
Trait Implementations§
Source§impl Clone for StatConfig
impl Clone for StatConfig
Source§fn clone(&self) -> StatConfig
fn clone(&self) -> StatConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StatConfig
Source§impl Debug for StatConfig
impl Debug for StatConfig
Auto Trait Implementations§
impl Freeze for StatConfig
impl RefUnwindSafe for StatConfig
impl Send for StatConfig
impl Sync for StatConfig
impl Unpin for StatConfig
impl UnsafeUnpin for StatConfig
impl UnwindSafe for StatConfig
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