pub struct FastGRNNConfig {
pub input_dim: usize,
pub hidden_dim: usize,
pub output_dim: usize,
pub nu: f32,
pub zeta: f32,
pub rank: Option<usize>,
}Expand description
FastGRNN model configuration
Fields§
§input_dim: usizeInput dimension
Hidden dimension
output_dim: usizeOutput dimension
nu: f32Gate non-linearity parameter
zeta: f32Hidden non-linearity parameter
rank: Option<usize>Rank constraint for low-rank factorization
Trait Implementations§
Source§impl Clone for FastGRNNConfig
impl Clone for FastGRNNConfig
Source§fn clone(&self) -> FastGRNNConfig
fn clone(&self) -> FastGRNNConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FastGRNNConfig
impl Debug for FastGRNNConfig
Source§impl Default for FastGRNNConfig
impl Default for FastGRNNConfig
Source§impl<'de> Deserialize<'de> for FastGRNNConfig
impl<'de> Deserialize<'de> for FastGRNNConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FastGRNNConfig
impl RefUnwindSafe for FastGRNNConfig
impl Send for FastGRNNConfig
impl Sync for FastGRNNConfig
impl Unpin for FastGRNNConfig
impl UnwindSafe for FastGRNNConfig
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