pub struct SoftplusForwardDispatch;Expand description
Forward: y = (1/beta) * log(1 + exp(betax)) For betax > threshold: y ≈ x (numerically safe pass-through)
Implementations§
Source§impl SoftplusForwardDispatch
impl SoftplusForwardDispatch
Sourcepub const SUPPORTED_DTYPES: &'static [DtypeRepr]
pub const SUPPORTED_DTYPES: &'static [DtypeRepr]
Dtypes this kernel declares support for.
Auto Trait Implementations§
impl Freeze for SoftplusForwardDispatch
impl RefUnwindSafe for SoftplusForwardDispatch
impl Send for SoftplusForwardDispatch
impl Sync for SoftplusForwardDispatch
impl Unpin for SoftplusForwardDispatch
impl UnsafeUnpin for SoftplusForwardDispatch
impl UnwindSafe for SoftplusForwardDispatch
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