pub struct Normalize {
pub mean: Vec<f32>,
pub std: Vec<f32>,
}Expand description
Normalizes floating point slice values across channels: out[c] = (in[c] - mean[c]) / std[c].
Fields§
§mean: Vec<f32>Mean value per channel.
std: Vec<f32>Standard deviation value per channel.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Normalize
impl RefUnwindSafe for Normalize
impl Send for Normalize
impl Sync for Normalize
impl Unpin for Normalize
impl UnsafeUnpin for Normalize
impl UnwindSafe for Normalize
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> DTypeEq<T> for T
impl<T> DTypeEq<T> for T
Source§const DTYPES_EQUAL: bool = true
const DTYPES_EQUAL: bool = true
A type is always dtype-equal to itself.
Source§const ASSERT_DTYPES_MATCH: ()
const ASSERT_DTYPES_MATCH: ()
Always passes, since T: DTypeEq<T> only reaches this impl when
the two types genuinely match.
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<N> SameCount<N> for N
Source§impl<S> ShapeEq<S> for S
impl<S> ShapeEq<S> for S
Source§const SHAPES_EQUAL: bool = true
const SHAPES_EQUAL: bool = true
A type is always shape-equal to itself.
Source§const ASSERT_SHAPES_MATCH: ()
const ASSERT_SHAPES_MATCH: ()
Always passes, since S: ShapeEq<S> only reaches this impl when
the two types genuinely match.