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