pub struct InterleavedComplexRopeConfig {
pub batch: usize,
pub seq_len: usize,
pub query_heads: usize,
pub key_heads: usize,
pub head_dim: usize,
}Expand description
Interleaved complex-frequency RoPE config for Q/K tensors.
Adjacent dimensions are treated as real/imaginary pairs and multiplied by a precomputed complex frequency table laid out as [seq_len, head_dim].
Fields§
§batch: usize§seq_len: usize§query_heads: usize§key_heads: usize§head_dim: usizeTrait Implementations§
Source§impl Clone for InterleavedComplexRopeConfig
impl Clone for InterleavedComplexRopeConfig
Source§fn clone(&self) -> InterleavedComplexRopeConfig
fn clone(&self) -> InterleavedComplexRopeConfig
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 moreimpl Copy for InterleavedComplexRopeConfig
Source§impl Debug for InterleavedComplexRopeConfig
impl Debug for InterleavedComplexRopeConfig
impl Eq for InterleavedComplexRopeConfig
Source§impl PartialEq for InterleavedComplexRopeConfig
impl PartialEq for InterleavedComplexRopeConfig
Source§fn eq(&self, other: &InterleavedComplexRopeConfig) -> bool
fn eq(&self, other: &InterleavedComplexRopeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterleavedComplexRopeConfig
Auto Trait Implementations§
impl Freeze for InterleavedComplexRopeConfig
impl RefUnwindSafe for InterleavedComplexRopeConfig
impl Send for InterleavedComplexRopeConfig
impl Sync for InterleavedComplexRopeConfig
impl Unpin for InterleavedComplexRopeConfig
impl UnsafeUnpin for InterleavedComplexRopeConfig
impl UnwindSafe for InterleavedComplexRopeConfig
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