pub struct Softshrink<D: Float, T, const RANK: usize> {
pub lambda: f64,
/* private fields */
}Expand description
Softshrink activation layer: shrinks values toward zero by lambda.
Fields§
§lambda: f64The shrinkage threshold.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<D, T, const RANK: usize> Freeze for Softshrink<D, T, RANK>
impl<D, T, const RANK: usize> RefUnwindSafe for Softshrink<D, T, RANK>where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<D, T, const RANK: usize> Send for Softshrink<D, T, RANK>
impl<D, T, const RANK: usize> Sync for Softshrink<D, T, RANK>
impl<D, T, const RANK: usize> Unpin for Softshrink<D, T, RANK>
impl<D, T, const RANK: usize> UnsafeUnpin for Softshrink<D, T, RANK>
impl<D, T, const RANK: usize> UnwindSafe for Softshrink<D, T, RANK>where
D: UnwindSafe,
T: UnwindSafe,
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