pub struct ZNegArgs<'a> {
pub cap: &'a [f32],
pub n_cap_p: usize,
pub rope_img: (&'a [f32], &'a [f32]),
pub rope_joint: (&'a [f32], &'a [f32]),
}Expand description
The negative (unconditional) item of a CFG pair: its own refined caption, padded caption length and joint RoPE table (the image ids sit at axis-0 position L_p+1, so both tables depend on the item’s L_p).
Fields§
§cap: &'a [f32][n_cap_p, hidden], context-refined.
n_cap_p: usize§rope_img: (&'a [f32], &'a [f32])[n_img_p · hd/2] cos, sin (noise refiner) of this item.
rope_joint: (&'a [f32], &'a [f32])[(n_img_p + n_cap_p) · hd/2] cos, sin, rows [img, cap].
Auto Trait Implementations§
impl<'a> Freeze for ZNegArgs<'a>
impl<'a> RefUnwindSafe for ZNegArgs<'a>
impl<'a> Send for ZNegArgs<'a>
impl<'a> Sync for ZNegArgs<'a>
impl<'a> Unpin for ZNegArgs<'a>
impl<'a> UnsafeUnpin for ZNegArgs<'a>
impl<'a> UnwindSafe for ZNegArgs<'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