pub struct MossChainArgs<'a> {
pub x: &'a mut [f32],
pub tokens: usize,
pub heads: usize,
pub head_dim: usize,
pub modulation: &'a [f32],
pub cos: &'a [f32],
pub sin: &'a [f32],
pub blocks: &'a [MossChainBlock<'a>],
}Expand description
A MOSS-Image forward’s blocks over the joint [image | text] rows x
([tokens][heads · head_dim]): one modulation [6][dim] for every
block, the rotation’s first halves [tokens][head_dim / 2].
Fields§
§x: &'a mut [f32]§tokens: usize§heads: usize§head_dim: usize§modulation: &'a [f32]§cos: &'a [f32]§sin: &'a [f32]§blocks: &'a [MossChainBlock<'a>]Auto Trait Implementations§
impl<'a> !UnwindSafe for MossChainArgs<'a>
impl<'a> Forget for MossChainArgs<'a>
impl<'a> Freeze for MossChainArgs<'a>
impl<'a> Move for MossChainArgs<'a>
impl<'a> RefUnwindSafe for MossChainArgs<'a>
impl<'a> Send for MossChainArgs<'a>
impl<'a> Sync for MossChainArgs<'a>
impl<'a> Unpin for MossChainArgs<'a>
impl<'a> UnsafeUnpin for MossChainArgs<'a>
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