pub struct Sam2MemoryEncoderOutput {
pub features: Vec<f32>,
pub pos: Vec<f32>,
pub h: usize,
pub w: usize,
}Fields§
§features: Vec<f32>[out_dim, h, w] memory feature map (typically 64×64×64).
pos: Vec<f32>[2·pe_num_pos_feats, h, w] sinusoidal PE matching features.
h: usize§w: usizeAuto Trait Implementations§
impl Freeze for Sam2MemoryEncoderOutput
impl RefUnwindSafe for Sam2MemoryEncoderOutput
impl Send for Sam2MemoryEncoderOutput
impl Sync for Sam2MemoryEncoderOutput
impl Unpin for Sam2MemoryEncoderOutput
impl UnsafeUnpin for Sam2MemoryEncoderOutput
impl UnwindSafe for Sam2MemoryEncoderOutput
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> 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