pub struct Sam2MemoryPrefixCompiled {
pub in_dim: usize,
pub mask_in_h: usize,
pub mask_in_w: usize,
pub feat_h: usize,
pub feat_w: usize,
/* private fields */
}Expand description
Fused mask down + pix_feat_proj + add → fuser input.
Fields§
§in_dim: usize§mask_in_h: usize§mask_in_w: usize§feat_h: usize§feat_w: usizeImplementations§
Source§impl Sam2MemoryPrefixCompiled
impl Sam2MemoryPrefixCompiled
pub fn compile( mask_ds: &Sam2MaskDownSamplerWeights, in_dim: usize, mask_in_h: usize, mask_in_w: usize, feat_h: usize, feat_w: usize, pix_w: &[f32], pix_b: &[f32], device: Device, ) -> Result<Sam2MemoryPrefixCompiled, Error>
pub fn compile_with_profile( mask_ds: &Sam2MaskDownSamplerWeights, in_dim: usize, mask_in_h: usize, mask_in_w: usize, feat_h: usize, feat_w: usize, pix_w: &[f32], pix_b: &[f32], device: Device, profile: &CompileProfile, ) -> Result<Sam2MemoryPrefixCompiled, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for Sam2MemoryPrefixCompiled
impl !Sync for Sam2MemoryPrefixCompiled
impl !UnwindSafe for Sam2MemoryPrefixCompiled
impl Freeze for Sam2MemoryPrefixCompiled
impl Send for Sam2MemoryPrefixCompiled
impl Unpin for Sam2MemoryPrefixCompiled
impl UnsafeUnpin for Sam2MemoryPrefixCompiled
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
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