pub struct StreamInput {
pub latent: Vec<f32>,
pub tokens: usize,
pub timesteps: Vec<f32>,
pub positions: Vec<Vec<f64>>,
pub context: Vec<f32>,
pub ctx_len: usize,
pub context_mask: Vec<f32>,
pub keyframes: Vec<f32>,
pub sigma: f32,
}Expand description
One modality’s per-step conditioning: everything the blocks read that is not a weight.
Fields§
§latent: Vec<f32>Patchified latent, [tokens, in_channels].
tokens: usize§timesteps: Vec<f32>Per-token timestep (the sigma·denoising-mask product).
positions: Vec<Vec<f64>>Per-token patch midpoints, one entry per RoPE axis.
context: Vec<f32>Prompt embeddings out of the connector, [ctx_len, cross_dim].
ctx_len: usize§context_mask: Vec<f32>Additive per-key prompt mask, or empty for “attend to all”.
keyframes: Vec<f32>Non-zero for tokens holding a standalone pixel frame (video only).
sigma: f32This stream’s sigma — the other stream’s fusion gate reads it.
Auto Trait Implementations§
impl Freeze for StreamInput
impl RefUnwindSafe for StreamInput
impl Send for StreamInput
impl Sync for StreamInput
impl Unpin for StreamInput
impl UnsafeUnpin for StreamInput
impl UnwindSafe for StreamInput
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