pub struct ZRope {
pub img: (Vec<f32>, Vec<f32>),
pub joint: (Vec<f32>, Vec<f32>),
pub cap: (Vec<f32>, Vec<f32>),
}Expand description
RoPE tables, each (cos, sin) of [rows · hd/2] f32.
Fields§
§img: (Vec<f32>, Vec<f32>)Noise refiner, [n_img_p] rows (image ids).
joint: (Vec<f32>, Vec<f32>)Main layers, [n_img_p + l_p] rows ordered [img, cap].
cap: (Vec<f32>, Vec<f32>)Context refiner, [l_p] rows (caption ids).
Auto Trait Implementations§
impl Freeze for ZRope
impl RefUnwindSafe for ZRope
impl Send for ZRope
impl Sync for ZRope
impl Unpin for ZRope
impl UnsafeUnpin for ZRope
impl UnwindSafe for ZRope
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