pub struct ProtoData {
pub mask_coefficients: Vec<Vec<f32>>,
pub protos: ProtoTensor,
}Expand description
Raw prototype data for fused decode+render pipelines.
Holds post-NMS intermediate state before mask materialization, allowing the
renderer to compute mask_coeff @ protos directly (e.g. in a GPU fragment
shader) without materializing intermediate Array3<u8> masks.
Fields§
§mask_coefficients: Vec<Vec<f32>>Mask coefficients per detection (each Vec<f32> has length num_protos).
protos: ProtoTensorPrototype tensor, shape (proto_h, proto_w, num_protos).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProtoData
impl RefUnwindSafe for ProtoData
impl Send for ProtoData
impl Sync for ProtoData
impl Unpin for ProtoData
impl UnsafeUnpin for ProtoData
impl UnwindSafe for ProtoData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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