Struct coaster_nn::frameworks::native::helper::RnnConfig
source · pub struct RnnConfig {
pub hidden_size: usize,
pub num_layers: usize,
pub dropout_probability: f32,
pub dropout_seed: u64,
pub rnn_type: RnnNetworkMode,
pub input_mode: RnnInputMode,
pub direction_mode: DirectionMode,
}
Fields§
Size of the Hidden Layer
num_layers: usize
Number of Hidden Layers
dropout_probability: f32
Dropout Probability
dropout_seed: u64
Dropout Seed
rnn_type: RnnNetworkMode
Type of RNN
input_mode: RnnInputMode
Input Mode
direction_mode: DirectionMode
RNN Direction
Trait Implementations§
source§impl<'a, T> RnnConfig<T> for RnnConfig
impl<'a, T> RnnConfig<T> for RnnConfig
source§fn workspace_size(&self) -> usize
fn workspace_size(&self) -> usize
Workspace Size - Overwritten by each plugin method except native, which doesn’t require
a workspace size.
impl Copy for RnnConfig
impl<T> NNOperationConfig<T> 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