pub struct LtxStream<'a> {
pub attn1: LtxAttn<'a>,
pub attn2: LtxAttn<'a>,
pub ff_in: LtxLin<'a>,
pub ff_out: LtxLin<'a>,
pub mods: &'a [f32],
pub ctx_mod: &'a [f32],
}Expand description
One modality’s half of an LTX-2.5 block.
Fields§
§attn1: LtxAttn<'a>§attn2: LtxAttn<'a>§ff_in: LtxLin<'a>§ff_out: LtxLin<'a>§mods: &'a [f32][distinct][9][dim]: (shift, scale, gate) of self-attention, of the
feed-forward and of the prompt attention, for each distinct timestep
of the stream (the block’s table plus the timestep’s row).
ctx_mod: &'a [f32][2][dim]: shift and scale of the prompt before its keys and values.
Auto Trait Implementations§
impl<'a> Forget for LtxStream<'a>
impl<'a> Freeze for LtxStream<'a>
impl<'a> Move for LtxStream<'a>
impl<'a> RefUnwindSafe for LtxStream<'a>
impl<'a> Send for LtxStream<'a>
impl<'a> Sync for LtxStream<'a>
impl<'a> Unpin for LtxStream<'a>
impl<'a> UnsafeUnpin for LtxStream<'a>
impl<'a> UnwindSafe for LtxStream<'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