pub struct SoftshrinkForwardDispatch;Expand description
Forward: y = x - lambda if x > lambda, x + lambda if x < -lambda, else 0
Implementations§
Source§impl SoftshrinkForwardDispatch
impl SoftshrinkForwardDispatch
Sourcepub const SUPPORTED_DTYPES: &'static [DtypeRepr]
pub const SUPPORTED_DTYPES: &'static [DtypeRepr]
Dtypes this kernel declares support for.
Auto Trait Implementations§
impl Freeze for SoftshrinkForwardDispatch
impl RefUnwindSafe for SoftshrinkForwardDispatch
impl Send for SoftshrinkForwardDispatch
impl Sync for SoftshrinkForwardDispatch
impl Unpin for SoftshrinkForwardDispatch
impl UnsafeUnpin for SoftshrinkForwardDispatch
impl UnwindSafe for SoftshrinkForwardDispatch
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