pub struct Sam2MemoryFuserCompiled {
pub dim: usize,
pub h: usize,
pub w: usize,
/* private fields */
}Expand description
ConvNeXt-style Fuser (optional input 1×1 + CXBlock stack).
Fields§
§dim: usize§h: usize§w: usizeImplementations§
Source§impl Sam2MemoryFuserCompiled
impl Sam2MemoryFuserCompiled
pub fn compile( w: &Sam2FuserWeights, h: usize, ww: usize, device: Device, ) -> Result<Sam2MemoryFuserCompiled, Error>
pub fn compile_with_profile( w: &Sam2FuserWeights, h: usize, ww: usize, device: Device, profile: &CompileProfile, ) -> Result<Sam2MemoryFuserCompiled, Error>
pub fn run(&mut self, x: &[f32]) -> Result<Vec<f32>, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for Sam2MemoryFuserCompiled
impl !Sync for Sam2MemoryFuserCompiled
impl !UnwindSafe for Sam2MemoryFuserCompiled
impl Freeze for Sam2MemoryFuserCompiled
impl Send for Sam2MemoryFuserCompiled
impl Unpin for Sam2MemoryFuserCompiled
impl UnsafeUnpin for Sam2MemoryFuserCompiled
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