pub struct InitStats {
pub shape: Vec<usize>,
pub num_elements: usize,
pub mean: f64,
pub std: f64,
pub min: f64,
pub max: f64,
pub fan_in: usize,
pub fan_out: usize,
}Expand description
Statistics about an initialized weight tensor.
Fields§
§shape: Vec<usize>Shape of the tensor.
num_elements: usizeTotal number of elements.
mean: f64Mean value.
std: f64Standard deviation.
min: f64Minimum value.
max: f64Maximum value.
fan_in: usizeComputed fan_in.
fan_out: usizeComputed fan_out.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InitStats
impl RefUnwindSafe for InitStats
impl Send for InitStats
impl Sync for InitStats
impl Unpin for InitStats
impl UnsafeUnpin for InitStats
impl UnwindSafe for InitStats
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