pub struct Sigmoid<const N: usize>;Implementations§
Trait Implementations§
Source§impl<const N: usize> Layer<N, N> for Sigmoid<N>
impl<const N: usize> Layer<N, N> for Sigmoid<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 Sigmoid<N>
impl<const N: usize> RefUnwindSafe for Sigmoid<N>
impl<const N: usize> Send for Sigmoid<N>
impl<const N: usize> Sync for Sigmoid<N>
impl<const N: usize> Unpin for Sigmoid<N>
impl<const N: usize> UnsafeUnpin for Sigmoid<N>
impl<const N: usize> UnwindSafe for Sigmoid<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