pub struct BackboneOutput {
pub cls: Vec<f32>,
pub patches: Vec<f32>,
pub n_patches: usize,
}Expand description
The two outputs of a DINOv2 ViT backbone forward pass.
Fields§
§cls: Vec<f32>The [CLS] embedding: flat [embed_dim].
patches: Vec<f32>The patch tokens: flat [n_patches · embed_dim].
n_patches: usizeNumber of patch tokens.
Trait Implementations§
Source§impl Clone for BackboneOutput
impl Clone for BackboneOutput
Source§fn clone(&self) -> BackboneOutput
fn clone(&self) -> BackboneOutput
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 BackboneOutput
impl RefUnwindSafe for BackboneOutput
impl Send for BackboneOutput
impl Sync for BackboneOutput
impl Unpin for BackboneOutput
impl UnsafeUnpin for BackboneOutput
impl UnwindSafe for BackboneOutput
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