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: usizeNumber of Hidden Layers
rnn_type: RnnNetworkModeType of RNN
dropout_probability: f32Dropout Probability
dropout_seed: u64Dropout Seed
input_mode: RnnInputModeInput Mode
direction_mode: DirectionModeRNN 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