pub struct TitansConfig {
pub embed_dim: usize,
pub num_heads: usize,
pub num_layers: usize,
pub ff_dim: usize,
pub max_seq_len: usize,
pub memory_size: usize,
pub seed: u64,
}Expand description
Configuration for Titans predictor
Fields§
§embed_dim: usize§num_heads: usize§num_layers: usize§ff_dim: usize§max_seq_len: usize§memory_size: usizeSize of persistent memory (number of memory tokens)
seed: u64Trait Implementations§
Source§impl Clone for TitansConfig
impl Clone for TitansConfig
Source§fn clone(&self) -> TitansConfig
fn clone(&self) -> TitansConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TitansConfig
impl Debug for TitansConfig
Source§impl Default for TitansConfig
impl Default for TitansConfig
Source§impl<'de> Deserialize<'de> for TitansConfig
impl<'de> Deserialize<'de> for TitansConfig
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 TitansConfig
impl RefUnwindSafe for TitansConfig
impl Send for TitansConfig
impl Sync for TitansConfig
impl Unpin for TitansConfig
impl UnsafeUnpin for TitansConfig
impl UnwindSafe for TitansConfig
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