pub struct GemmaVisionUnit {
pub patches: Vec<f32>,
pub gw: usize,
pub gh: usize,
}Expand description
One preprocessed gemma image, server-carried from the HTTP layer to the GPU worker.
patches is the tower input (dropped after the tower forward); n_soft is the pooled
token count = (gw/3)(gh/3), i.e. the number of <|image|> soft tokens the prompt run
must carry for this unit.
Fields§
§patches: Vec<f32>§gw: usize§gh: usizeImplementations§
Auto Trait Implementations§
impl Freeze for GemmaVisionUnit
impl RefUnwindSafe for GemmaVisionUnit
impl Send for GemmaVisionUnit
impl Sync for GemmaVisionUnit
impl Unpin for GemmaVisionUnit
impl UnsafeUnpin for GemmaVisionUnit
impl UnwindSafe for GemmaVisionUnit
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