pub struct MishForwardDispatch;Expand description
Forward: y = x * tanh(softplus(x)) = x * tanh(log(1 + exp(x)))
Implementations§
Source§impl MishForwardDispatch
impl MishForwardDispatch
Sourcepub const SUPPORTED_DTYPES: &'static [DtypeRepr]
pub const SUPPORTED_DTYPES: &'static [DtypeRepr]
Dtypes this kernel declares support for.
Auto Trait Implementations§
impl Freeze for MishForwardDispatch
impl RefUnwindSafe for MishForwardDispatch
impl Send for MishForwardDispatch
impl Sync for MishForwardDispatch
impl Unpin for MishForwardDispatch
impl UnsafeUnpin for MishForwardDispatch
impl UnwindSafe for MishForwardDispatch
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