pub struct HTTConfig { /* private fields */ }Expand description
Configuration for the Hyperbolic Tree Tensor.
Implementations§
Source§impl HTTConfig
impl HTTConfig
Sourcepub fn new(dimension: usize, max_memory_nodes: usize, cache_size: usize) -> Self
pub fn new(dimension: usize, max_memory_nodes: usize, cache_size: usize) -> Self
Create a new HTT configuration (uses default τ = 1.0).
Sourcepub fn default_config() -> Self
pub fn default_config() -> Self
Create a default configuration.
Sourcepub fn with_tau(self, tau: FixedPoint) -> Self
pub fn with_tau(self, tau: FixedPoint) -> Self
Set the Sarkar embedding scale factor τ.
Sourcepub fn max_memory_nodes(&self) -> usize
pub fn max_memory_nodes(&self) -> usize
Get the maximum memory nodes.
Sourcepub fn cache_size(&self) -> usize
pub fn cache_size(&self) -> usize
Get the cache size.
Sourcepub fn tau(&self) -> FixedPoint
pub fn tau(&self) -> FixedPoint
Get the Sarkar embedding scale factor τ.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HTTConfig
impl RefUnwindSafe for HTTConfig
impl Send for HTTConfig
impl Sync for HTTConfig
impl Unpin for HTTConfig
impl UnsafeUnpin for HTTConfig
impl UnwindSafe for HTTConfig
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