pub struct Preprocessed {
pub pixel_values: Vec<f32>,
pub tiles: usize,
pub rows: usize,
pub cols: usize,
pub tile: usize,
}Expand description
One image, preprocessed into what the tower and the prompt both need.
rows/cols are carried alongside the pixels precisely because the prompt
assembly must emit <row_r_col_c> markers that agree with this tiling. Two
independent derivations of the same grid is how they silently disagree.
Fields§
§pixel_values: Vec<f32>(tiles, 3, tile, tile) planar CHW, normalized to [-1, 1].
tiles: usize§rows: usize§cols: usize§tile: usizeAuto Trait Implementations§
impl Freeze for Preprocessed
impl RefUnwindSafe for Preprocessed
impl Send for Preprocessed
impl Sync for Preprocessed
impl Unpin for Preprocessed
impl UnsafeUnpin for Preprocessed
impl UnwindSafe for Preprocessed
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more