pub struct VisionInput {
pub pw: usize,
pub ph: usize,
pub pixels: Vec<f32>,
}Expand description
One image (or video frame) ready for the tower: its patch grid and the
patch rows, [pw·ph, 3·patch²], already in the tower’s [-1, 1].
Fields§
§pw: usize§ph: usize§pixels: Vec<f32>Implementations§
Trait Implementations§
Source§impl Clone for VisionInput
impl Clone for VisionInput
Auto Trait Implementations§
impl Freeze for VisionInput
impl RefUnwindSafe for VisionInput
impl Send for VisionInput
impl Sync for VisionInput
impl Unpin for VisionInput
impl UnsafeUnpin for VisionInput
impl UnwindSafe for VisionInput
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