pub struct Tanhshrink<D: Float, T, const RANK: usize> { /* private fields */ }Expand description
Tanhshrink activation layer: x - tanh(x).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<D, T, const RANK: usize> Freeze for Tanhshrink<D, T, RANK>
impl<D, T, const RANK: usize> RefUnwindSafe for Tanhshrink<D, T, RANK>where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<D, T, const RANK: usize> Send for Tanhshrink<D, T, RANK>
impl<D, T, const RANK: usize> Sync for Tanhshrink<D, T, RANK>
impl<D, T, const RANK: usize> Unpin for Tanhshrink<D, T, RANK>
impl<D, T, const RANK: usize> UnsafeUnpin for Tanhshrink<D, T, RANK>
impl<D, T, const RANK: usize> UnwindSafe for Tanhshrink<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