pub struct ReferenceVisionInput {
pub patches: ReferenceTensor,
pub positions: Vec<[u32; 2]>,
pub output_tokens: usize,
}Fields§
§patches: ReferenceTensorPatch rows, row-major [patches, patch_row_width]. The pixel contract is per
tower program:
VisionPlan::Factored(gemma-4): raw pixels in[0, 1], width3 * patch_size^2; the executor applies the graph’s2x - 1.VisionPlan::Glm5Fused: PREPROCESSED pixels (rescale 1/255 then CLIP mean/std normalize, done by the image processor), widthin_channels * temporal_patch_size * patch_size^2in(c, t, ph, pw)flat order, token sequence in spatial-merge block-major order.
positions: Vec<[u32; 2]>Per-patch 2D position. Factored: [x, y]. Glm5Fused: [h, w] (the upstream
get_vision_position_ids column order), block-major over merge blocks.
output_tokens: usizeTrait Implementations§
Source§impl Clone for ReferenceVisionInput
impl Clone for ReferenceVisionInput
Source§fn clone(&self) -> ReferenceVisionInput
fn clone(&self) -> ReferenceVisionInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReferenceVisionInput
impl Debug for ReferenceVisionInput
Source§impl PartialEq for ReferenceVisionInput
impl PartialEq for ReferenceVisionInput
impl StructuralPartialEq for ReferenceVisionInput
Auto Trait Implementations§
impl Freeze for ReferenceVisionInput
impl RefUnwindSafe for ReferenceVisionInput
impl Send for ReferenceVisionInput
impl Sync for ReferenceVisionInput
impl Unpin for ReferenceVisionInput
impl UnsafeUnpin for ReferenceVisionInput
impl UnwindSafe for ReferenceVisionInput
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