pub struct IntermediateValue {
pub step: usize,
pub operation: String,
pub shape: Vec<usize>,
pub min: f64,
pub max: f64,
pub mean: f64,
pub has_nan: bool,
pub has_inf: bool,
pub element_count: usize,
}Expand description
Statistics snapshot of a tensor value at a specific execution step.
Fields§
§step: usizeSequential operation index (0-based).
operation: StringHuman-readable name of the operation.
shape: Vec<usize>Shape of the tensor.
min: f64Minimum value (NaN-safe via fold).
max: f64Maximum value (NaN-safe via fold).
mean: f64Mean value.
has_nan: boolWhether any element is NaN.
has_inf: boolWhether any element is ±Inf.
element_count: usizeTotal number of elements.
Implementations§
Trait Implementations§
Source§impl Clone for IntermediateValue
impl Clone for IntermediateValue
Auto Trait Implementations§
impl Freeze for IntermediateValue
impl RefUnwindSafe for IntermediateValue
impl Send for IntermediateValue
impl Sync for IntermediateValue
impl Unpin for IntermediateValue
impl UnsafeUnpin for IntermediateValue
impl UnwindSafe for IntermediateValue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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