[][src]Struct neuro::layers::Dense

pub struct Dense { /* fields omitted */ }

Defines a dense (or fully connected) layer.

Methods

impl Dense[src]

pub fn new(units: u64, activation: Activation) -> Box<Dense>[src]

Creates a dense layer with given number of units and activation function.

By default, the weights are initialized with a HeUniform initializer and the biases with a Zeros initializer.

pub fn with_param(
    units: u64,
    activation: Activation,
    weights_initializer: Initializer,
    biases_initializer: Initializer
) -> Box<Dense>
[src]

Creates a dense layer with the given parameters.

Trait Implementations

impl Display for Dense[src]

impl Layer for Dense[src]

Auto Trait Implementations

impl RefUnwindSafe for Dense

impl Send for Dense

impl Sync for Dense

impl Unpin for Dense

impl UnwindSafe for Dense

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> SetParameter for T

impl<T> ToString for T where
    T: Display + ?Sized
[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>,