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