pub fn map_inplace(&mut self, f: impl Fn(ActivationT) -> ActivationT) {
        let tmp = unsafe { mem::MaybeUninit::zeroed().assume_init() };
        let old = mem::replace(self, tmp);

        mem::drop(mem::replace(self, old.map_into(f)));
    }
/// Mutate all feature activations inplace using an operation, `f`.
Mutate all feature activations inplace using an operation, `f`.
Mutate all feature activations inplace using an operation ` f ` .
pub fn map_inplace(&mut self, f: impl Fn(ActivationT) -> ActivationT) {
        let tmp = unsafe { mem::MaybeUninit::zeroed().assume_init() };
        let old = mem::replace(self, tmp);
        mem::drop(mem::replace(self, old.map_into(f)));
    }
pub fn map_inplace ( & mut self , f : impl Fn ( ActivationT ) -> ActivationT ) { let tmp = unsafe { mem :: MaybeUninit :: zeroed ( ) . assume_init ( ) } ; let old = mem :: replace ( self , tmp ) ; mem :: drop ( mem :: replace ( self , old . map_into ( f ) ) ) ; }
Mutate all feature activations inplace using an operation, `f`.
Mutate all feature activations inplace using an operation ` f ` .
&mut self
f
impl Fn(ActivationT) -> ActivationT
&mut self
f
impl Fn(ActivationT) -> ActivationT