pub struct Sam2FpnNeckIr {
pub laterals: Vec<Sam2FpnLateralCompiled>,
pub fuses: Vec<Option<Sam2FpnTopDownCompiled>>,
pub pos: Vec<Vec<f32>>,
}Expand description
One compiled lateral per encoder stage (index = stage 0 finest … n-1 coarsest).
Fields§
§laterals: Vec<Sam2FpnLateralCompiled>§fuses: Vec<Option<Sam2FpnTopDownCompiled>>fuses[stage_idx] when that stage receives top-down fusion.
pos: Vec<Vec<f32>>Per-stage sinusoidal PE [d_model, h, w] NCHW flat (index = stage).
Auto Trait Implementations§
impl !RefUnwindSafe for Sam2FpnNeckIr
impl !Sync for Sam2FpnNeckIr
impl !UnwindSafe for Sam2FpnNeckIr
impl Freeze for Sam2FpnNeckIr
impl Send for Sam2FpnNeckIr
impl Unpin for Sam2FpnNeckIr
impl UnsafeUnpin for Sam2FpnNeckIr
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