pub struct ReLU<const N: usize>;Implementations§
Trait Implementations§
Source§impl<const N: usize> Layer<N, N> for ReLU<N>
impl<const N: usize> Layer<N, N> for ReLU<N>
fn forward(&self, input: &[Float; N], output: &mut [Float; N])
fn backward( &mut self, input: &[Float; N], output: &[Float; N], output_grad: &[Float; N], input_grad: &mut [Float; N], )
fn zero_grad(&mut self)
fn apply_gradients( &mut self, _optimizer: &mut dyn Optimizer, _slot: &mut usize, _scale: Float, )
Auto Trait Implementations§
impl<const N: usize> Freeze for ReLU<N>
impl<const N: usize> RefUnwindSafe for ReLU<N>
impl<const N: usize> Send for ReLU<N>
impl<const N: usize> Sync for ReLU<N>
impl<const N: usize> Unpin for ReLU<N>
impl<const N: usize> UnsafeUnpin for ReLU<N>
impl<const N: usize> UnwindSafe for ReLU<N>
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