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