pub struct ZShape {
pub h_lat: usize,
pub w_lat: usize,
pub grid: (usize, usize),
pub n_img: usize,
pub n_img_p: usize,
pub l: usize,
pub l_p: usize,
}Expand description
Token geometry of one (resolution, prompt length).
Fields§
§h_lat: usizeLatent size (H/8, W/8).
w_lat: usize§grid: (usize, usize)Patch grid (H/16, W/16).
n_img: usizen_img = grid.0 · grid.1, n_img_p = ceil32(n_img).
n_img_p: usize§l: usizeCaption tokens L and ceil32(L).
l_p: usizeImplementations§
Trait Implementations§
impl Copy for ZShape
impl Eq for ZShape
impl StructuralPartialEq for ZShape
Auto Trait Implementations§
impl Freeze for ZShape
impl RefUnwindSafe for ZShape
impl Send for ZShape
impl Sync for ZShape
impl Unpin for ZShape
impl UnsafeUnpin for ZShape
impl UnwindSafe for ZShape
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.