Struct juice::layers::common::rnn::RnnConfig[][src]

pub struct RnnConfig {
    pub hidden_size: usize,
    pub num_layers: usize,
    pub rnn_type: RnnNetworkMode,
    pub dropout_probability: f32,
    pub dropout_seed: u64,
    pub input_mode: RnnInputMode,
    pub direction_mode: DirectionMode,
}
Expand description

Specifies configuration parameters for a RNN Layer. TODO: Update to RnnConfig in CUDA Layer

Fields

hidden_size: usize

Size of the Hidden Layer

num_layers: usize

Number of Hidden Layers

rnn_type: RnnNetworkMode

Type of RNN

dropout_probability: f32

Dropout Probability

dropout_seed: u64

Dropout Seed

input_mode: RnnInputMode

Input Mode

direction_mode: DirectionMode

RNN Direction

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.