Struct mushin::layers::Dense[][src]

pub struct Dense<A: Activation, const I: usize, const O: usize> { /* fields omitted */ }

Implementations

impl<A: Activation, const I: usize, const O: usize> Dense<A, I, O>[src]

pub fn new(weights: [[f32; I]; O], bias: [f32; O]) -> Self[src]

pub fn random<R: RngCore, D: Distribution<f32>>(rng: &mut R, dist: &D) -> Self[src]

pub fn forward(&self, input: [f32; I]) -> [f32; O][src]

Trait Implementations

impl<A: Debug + Activation, const I: usize, const O: usize> Debug for Dense<A, I, O>[src]

Auto Trait Implementations

impl<A, const I: usize, const O: usize> RefUnwindSafe for Dense<A, I, O> where
    A: RefUnwindSafe

impl<A, const I: usize, const O: usize> Send for Dense<A, I, O> where
    A: Send

impl<A, const I: usize, const O: usize> Sync for Dense<A, I, O> where
    A: Sync

impl<A, const I: usize, const O: usize> Unpin for Dense<A, I, O> where
    A: Unpin

impl<A, const I: usize, const O: usize> UnwindSafe for Dense<A, I, O> where
    A: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,