pub struct MaskMeta {
pub visible_ids: Vec<usize>,
pub masked_ids: Vec<usize>,
}Expand description
Bookkeeping for a random mask over n_patches positions.
Both vectors are sorted ascending for deterministic downstream use, and
visible_ids ∪ masked_ids = 0..n_patches (disjoint).
Fields§
§visible_ids: Vec<usize>Sorted indices of patches kept (encoder sees these).
masked_ids: Vec<usize>Sorted indices of patches replaced by the mask token.
Trait Implementations§
impl Eq for MaskMeta
impl StructuralPartialEq for MaskMeta
Auto Trait Implementations§
impl Freeze for MaskMeta
impl RefUnwindSafe for MaskMeta
impl Send for MaskMeta
impl Sync for MaskMeta
impl Unpin for MaskMeta
impl UnsafeUnpin for MaskMeta
impl UnwindSafe for MaskMeta
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