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§
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§
impl Copy for RnnConfig
Auto Trait Implementations§
impl RefUnwindSafe for RnnConfig
impl Send for RnnConfig
impl Sync for RnnConfig
impl Unpin for RnnConfig
impl UnwindSafe for RnnConfig
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