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