pub struct TensorStatistics {
pub name: String,
pub shape: Vec<usize>,
pub dtype: String,
pub min: f64,
pub max: f64,
pub mean: f64,
pub std: f64,
pub nan_count: usize,
pub inf_count: usize,
pub zero_count: usize,
}Expand description
Statistics for a tensor
Fields§
§name: StringTensor name
shape: Vec<usize>Shape
dtype: StringData type
min: f64Minimum value
max: f64Maximum value
mean: f64Mean value
std: f64Standard deviation
nan_count: usizeCount of NaN values
inf_count: usizeCount of Inf values
zero_count: usizeCount of zeros
Implementations§
Trait Implementations§
Source§impl Clone for TensorStatistics
impl Clone for TensorStatistics
Source§fn clone(&self) -> TensorStatistics
fn clone(&self) -> TensorStatistics
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 TensorStatistics
impl RefUnwindSafe for TensorStatistics
impl Send for TensorStatistics
impl Sync for TensorStatistics
impl Unpin for TensorStatistics
impl UnwindSafe for TensorStatistics
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