pub struct ImageInput {
pub start: usize,
pub patches: Vec<f32>,
pub n_vit_h: usize,
pub n_vit_w: usize,
pub n_llm_h: usize,
pub n_llm_w: usize,
pub types: Vec<i8>,
}Expand description
An image record after prompt encoding. Patches use the same contiguous
[n_vit_h*n_vit_w, 3, patch, patch] order as PyTorch’s reference.
Fields§
§start: usize§patches: Vec<f32>§n_vit_h: usize§n_vit_w: usize§n_llm_h: usize§n_llm_w: usize§types: Vec<i8>Implementations§
Source§impl ImageInput
impl ImageInput
Trait Implementations§
Source§impl Clone for ImageInput
impl Clone for ImageInput
Source§fn clone(&self) -> ImageInput
fn clone(&self) -> ImageInput
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 moreAuto Trait Implementations§
impl Freeze for ImageInput
impl RefUnwindSafe for ImageInput
impl Send for ImageInput
impl Sync for ImageInput
impl Unpin for ImageInput
impl UnsafeUnpin for ImageInput
impl UnwindSafe for ImageInput
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