pub struct VisionItem {
pub groups: Vec<Vec<f32>>,
pub grid_h: usize,
pub grid_w: usize,
}Expand description
2026-09-25: One vision item: a still image, or a video, ready for the encoder.
groups holds the temporal groups: one for a still image (image), and
grid_t for a video, each group a full grid_h × grid_w patch plane built
from temporal_patch_size consecutive frames. All groups share the item’s
one grid, so the encoder takes each group as an image of that grid.
The group count lives in the item rather than in a parallel vector, so the
pad run (pad_count) and the encoder grids both read it from t_len.
Fields§
§groups: Vec<Vec<f32>>2026-09-25: Per temporal group: [grid_h * grid_w, C * temporal_patch_size * patch^2].
grid_h: usize2026-09-25: Pre-merge patch grid, shared by all of this item’s groups.
grid_w: usizeImplementations§
Trait Implementations§
Source§impl Clone for VisionItem
impl Clone for VisionItem
Source§fn clone(&self) -> VisionItem
fn clone(&self) -> VisionItem
Returns a duplicate of the value. Read more
1.0.0 · 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 VisionItem
impl Debug for VisionItem
Source§impl PartialEq for VisionItem
impl PartialEq for VisionItem
impl StructuralPartialEq for VisionItem
Auto Trait Implementations§
impl Freeze for VisionItem
impl RefUnwindSafe for VisionItem
impl Send for VisionItem
impl Sync for VisionItem
impl Unpin for VisionItem
impl UnwindSafe for VisionItem
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