pub struct Decoded {
pub hidden: Vec<f32>,
pub boxes: Vec<f32>,
pub logits: Vec<f32>,
pub presence: f32,
pub layer_boxes: Vec<Vec<f32>>,
pub layer_presence: Vec<f32>,
}Expand description
The decoder’s outputs (and per-layer values for checking).
Fields§
[Q, 256] the last layer’s normalised query states.
boxes: Vec<f32>[Q, 4] the final boxes, normalised xyxy.
logits: Vec<f32>[Q] classification logits.
presence: f32§layer_boxes: Vec<Vec<f32>>[layers][Q, 4] cxcywh boxes after each layer.
layer_presence: Vec<f32>Auto Trait Implementations§
impl Freeze for Decoded
impl RefUnwindSafe for Decoded
impl Send for Decoded
impl Sync for Decoded
impl Unpin for Decoded
impl UnsafeUnpin for Decoded
impl UnwindSafe for Decoded
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