pub struct LeakyRelu<D: Float, T, const RANK: usize> {
pub negative_slope: f64,
/* private fields */
}Expand description
Leaky ReLU activation layer: x for x >= 0, negative_slope * x otherwise.
Fields§
§negative_slope: f64The slope applied to negative inputs.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<D, T, const RANK: usize> Freeze for LeakyRelu<D, T, RANK>
impl<D, T, const RANK: usize> RefUnwindSafe for LeakyRelu<D, T, RANK>where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<D, T, const RANK: usize> Send for LeakyRelu<D, T, RANK>
impl<D, T, const RANK: usize> Sync for LeakyRelu<D, T, RANK>
impl<D, T, const RANK: usize> Unpin for LeakyRelu<D, T, RANK>
impl<D, T, const RANK: usize> UnsafeUnpin for LeakyRelu<D, T, RANK>
impl<D, T, const RANK: usize> UnwindSafe for LeakyRelu<D, T, RANK>where
D: UnwindSafe,
T: UnwindSafe,
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