pub struct LtxBlock<'a> {
pub video: LtxStream<'a>,
pub audio: LtxStream<'a>,
pub a2v: LtxAttn<'a>,
pub v2a: LtxAttn<'a>,
pub xmods_v: &'a [f32],
pub xmods_a: &'a [f32],
pub gate_a2v: &'a [f32],
pub gate_v2a: &'a [f32],
}Expand description
One LTX-2.5 block: both streams and the two directions of their fusion.
Fields§
§video: LtxStream<'a>§audio: LtxStream<'a>§a2v: LtxAttn<'a>§v2a: LtxAttn<'a>§xmods_v: &'a [f32][distinct][4][dim]: (scale, shift) of the audio-to-video attention
and (scale, shift) of the video-to-audio one, for the video stream.
xmods_a: &'a [f32]The same for the audio stream, [distinct][4][a_dim].
gate_a2v: &'a [f32][dim]: the gate of what audio adds to video.
gate_v2a: &'a [f32][a_dim]: the gate of what video adds to audio.
Auto Trait Implementations§
impl<'a> Forget for LtxBlock<'a>
impl<'a> Freeze for LtxBlock<'a>
impl<'a> Move for LtxBlock<'a>
impl<'a> RefUnwindSafe for LtxBlock<'a>
impl<'a> Send for LtxBlock<'a>
impl<'a> Sync for LtxBlock<'a>
impl<'a> Unpin for LtxBlock<'a>
impl<'a> UnsafeUnpin for LtxBlock<'a>
impl<'a> UnwindSafe for LtxBlock<'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