pub(crate) enum RotPrim<B: Backend> {
Complex {
cum_bsha: F<B, 4>,
rope_dim: usize,
rotate_pairwise: bool,
},
Quaternion {
cum_bshj4: F<B, 5>,
},
}Expand description
The per-token cumulative rotation on B’s primitives — the rank-tagged
counterpart of RotationSeq.
Variants§
Complex
Cumulative angles [batch, sequence, nheads, num_rope_angles].
Quaternion
Cumulative unit quaternions [batch, sequence, nheads, blocks, 4].
Implementations§
Auto Trait Implementations§
impl<B> Freeze for RotPrim<B>where
<B as BackendTypes>::FloatTensorPrimitive: Freeze,
impl<B> RefUnwindSafe for RotPrim<B>where
<B as BackendTypes>::FloatTensorPrimitive: RefUnwindSafe,
impl<B> Send for RotPrim<B>
impl<B> Sync for RotPrim<B>
impl<B> Unpin for RotPrim<B>where
<B as BackendTypes>::FloatTensorPrimitive: Unpin,
impl<B> UnsafeUnpin for RotPrim<B>where
<B as BackendTypes>::FloatTensorPrimitive: UnsafeUnpin,
impl<B> UnwindSafe for RotPrim<B>where
<B as BackendTypes>::FloatTensorPrimitive: UnwindSafe,
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