pub struct RouteParams {
pub idx_scale: f32,
pub floor: f32,
pub sigma: f32,
pub k: usize,
pub top_m: usize,
}Expand description
The routing parameters of one layer.
Fields§
§idx_scale: f32dash_scale_per_layer / √index_dim.
floor: f32§sigma: f32§k: usize§top_m: usizeTrait Implementations§
Source§impl Clone for RouteParams
impl Clone for RouteParams
impl Copy for RouteParams
Auto Trait Implementations§
impl Forget for RouteParams
impl Freeze for RouteParams
impl Move for RouteParams
impl RefUnwindSafe for RouteParams
impl Send for RouteParams
impl Sync for RouteParams
impl Unpin for RouteParams
impl UnsafeUnpin for RouteParams
impl UnwindSafe for RouteParams
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