pub struct VisionUnit {
pub prep: PreppedImage,
pub video: Option<usize>,
}Expand description
One pad-run unit crossing the API boundary: a standalone image, or one temporal
group of a video. Units with the same video index are consecutive and forward
TOGETHER through forward_seq (one attention span per video).
Fields§
§prep: PreppedImage§video: Option<usize>Some(video_idx) for video groups; None for standalone images.
Auto Trait Implementations§
impl Freeze for VisionUnit
impl RefUnwindSafe for VisionUnit
impl Send for VisionUnit
impl Sync for VisionUnit
impl Unpin for VisionUnit
impl UnsafeUnpin for VisionUnit
impl UnwindSafe for VisionUnit
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