pub struct RopeMultiParams {
pub head_dim: u32,
pub rope_dim: u32,
pub n_heads: u32,
pub seq_len: u32,
pub freq_base: f32,
pub mode: RopeMultiMode,
pub sections: [u32; 4],
}Expand description
Shape + config for a rope_multi dispatch.
Fields§
§head_dim: u32§rope_dim: u32§n_heads: u32§seq_len: u32§freq_base: f32§mode: RopeMultiMode§sections: [u32; 4]Section counts [s0, s1, s2, s3]. Sum should be rope_dim / 2 for
full coverage; the kernel tolerates smaller sums (sector wraps).
Trait Implementations§
Source§impl Clone for RopeMultiParams
impl Clone for RopeMultiParams
Source§fn clone(&self) -> RopeMultiParams
fn clone(&self) -> RopeMultiParams
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 RopeMultiParams
impl Debug for RopeMultiParams
impl Copy for RopeMultiParams
Auto Trait Implementations§
impl Freeze for RopeMultiParams
impl RefUnwindSafe for RopeMultiParams
impl Send for RopeMultiParams
impl Sync for RopeMultiParams
impl Unpin for RopeMultiParams
impl UnsafeUnpin for RopeMultiParams
impl UnwindSafe for RopeMultiParams
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