pub struct Sam2MemoryMaskDownCompiled {
pub embed_dim: usize,
pub in_h: usize,
pub in_w: usize,
pub out_h: usize,
pub out_w: usize,
/* private fields */
}Fields§
§embed_dim: usize§in_h: usize§in_w: usize§out_h: usize§out_w: usizeImplementations§
Source§impl Sam2MemoryMaskDownCompiled
impl Sam2MemoryMaskDownCompiled
pub fn compile( w: &Sam2MaskDownSamplerWeights, in_h: usize, in_w: usize, device: Device, ) -> Result<Sam2MemoryMaskDownCompiled, Error>
pub fn compile_with_profile( w: &Sam2MaskDownSamplerWeights, in_h: usize, in_w: usize, device: Device, profile: &CompileProfile, ) -> Result<Sam2MemoryMaskDownCompiled, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for Sam2MemoryMaskDownCompiled
impl !Sync for Sam2MemoryMaskDownCompiled
impl !UnwindSafe for Sam2MemoryMaskDownCompiled
impl Freeze for Sam2MemoryMaskDownCompiled
impl Send for Sam2MemoryMaskDownCompiled
impl Unpin for Sam2MemoryMaskDownCompiled
impl UnsafeUnpin for Sam2MemoryMaskDownCompiled
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