pub struct DualSpaceConfig {
pub dim: usize,
pub curvature: f32,
pub euclidean_weight: f32,
pub hyperbolic_weight: f32,
pub learn_weights: bool,
pub temperature: f32,
}Expand description
Configuration for dual-space attention
Fields§
§dim: usize§curvature: f32§euclidean_weight: f32§hyperbolic_weight: f32§learn_weights: bool§temperature: f32Implementations§
Source§impl DualSpaceConfig
impl DualSpaceConfig
pub fn builder() -> DualSpaceConfigBuilder
Trait Implementations§
Source§impl Clone for DualSpaceConfig
impl Clone for DualSpaceConfig
Source§fn clone(&self) -> DualSpaceConfig
fn clone(&self) -> DualSpaceConfig
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 DualSpaceConfig
impl Debug for DualSpaceConfig
Auto Trait Implementations§
impl Freeze for DualSpaceConfig
impl RefUnwindSafe for DualSpaceConfig
impl Send for DualSpaceConfig
impl Sync for DualSpaceConfig
impl Unpin for DualSpaceConfig
impl UnsafeUnpin for DualSpaceConfig
impl UnwindSafe for DualSpaceConfig
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