pub struct GeLULayer<const SIZE: usize> {
pub signal: Vector<f64, Dyn, VecStorage<f64, Dyn, U1>>,
/* private fields */
}Fields§
§signal: Vector<f64, Dyn, VecStorage<f64, Dyn, U1>>Implementations§
Trait Implementations§
Source§impl<const SIZE: usize> Layer for GeLULayer<SIZE>
impl<const SIZE: usize> Layer for GeLULayer<SIZE>
const PARAMS_CNT: usize = 0usize
const NEURONS_IN: usize = SIZE
const NEURONS_OUT: usize = SIZE
unsafe fn eval_unchecked(p: &[f64], x: DVector<f64>) -> DVector<f64>
fn eval(_p: &[f64], x: DVector<f64>) -> DVector<f64>
fn forward(&mut self, p: &[f64], x: DVector<f64>) -> DVector<f64>
fn backward(&mut self, _p: &[f64])
fn chain_element(&self) -> &DMatrix<f64>
fn chain_end(&self, _x: &DVector<f64>) -> DMatrix<f64>
fn default_initial_params() -> Vec<f64>
Auto Trait Implementations§
impl<const SIZE: usize> Freeze for GeLULayer<SIZE>
impl<const SIZE: usize> RefUnwindSafe for GeLULayer<SIZE>
impl<const SIZE: usize> Send for GeLULayer<SIZE>
impl<const SIZE: usize> Sync for GeLULayer<SIZE>
impl<const SIZE: usize> Unpin for GeLULayer<SIZE>
impl<const SIZE: usize> UnwindSafe for GeLULayer<SIZE>
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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.