pub struct MultiaxisRopeConfig {
pub batch: usize,
pub seq_len: usize,
pub query_heads: usize,
pub key_heads: usize,
pub head_dim: usize,
pub section_t: usize,
pub section_h: usize,
pub section_w: usize,
}Expand description
Three-axis half-split RoPE config for Q/K tensors.
The cosine and sine tables are split into temporal, height, and width sections. Each section rotates dimensions from the first half of the head with the corresponding dimensions in the second half.
Fields§
§batch: usize§seq_len: usize§query_heads: usize§key_heads: usize§head_dim: usize§section_t: usize§section_h: usize§section_w: usizeTrait Implementations§
Source§impl Clone for MultiaxisRopeConfig
impl Clone for MultiaxisRopeConfig
Source§fn clone(&self) -> MultiaxisRopeConfig
fn clone(&self) -> MultiaxisRopeConfig
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 MultiaxisRopeConfig
Source§impl Debug for MultiaxisRopeConfig
impl Debug for MultiaxisRopeConfig
impl Eq for MultiaxisRopeConfig
Source§impl PartialEq for MultiaxisRopeConfig
impl PartialEq for MultiaxisRopeConfig
Source§fn eq(&self, other: &MultiaxisRopeConfig) -> bool
fn eq(&self, other: &MultiaxisRopeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MultiaxisRopeConfig
Auto Trait Implementations§
impl Freeze for MultiaxisRopeConfig
impl RefUnwindSafe for MultiaxisRopeConfig
impl Send for MultiaxisRopeConfig
impl Sync for MultiaxisRopeConfig
impl Unpin for MultiaxisRopeConfig
impl UnsafeUnpin for MultiaxisRopeConfig
impl UnwindSafe for MultiaxisRopeConfig
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