pub struct DetrDecoder {
pub layers: Vec<DetrDecoderLayer>,
}Expand description
Multi-layer DETR decoder: stacks config.depth decoder layers.
Fields§
§layers: Vec<DetrDecoderLayer>Decoder layers in order of application.
Implementations§
Source§impl DetrDecoder
impl DetrDecoder
Sourcepub fn new(cfg: DetrConfig, rng: &mut LcgRng) -> VisionResult<Self>
pub fn new(cfg: DetrConfig, rng: &mut LcgRng) -> VisionResult<Self>
Build a new DetrDecoder with cfg.depth layers, all Xavier-initialised.
§Errors
DimensionMismatchifcfg.depth == 0.- Propagates errors from
DetrConfigvalidation (via cloning).
Auto Trait Implementations§
impl Freeze for DetrDecoder
impl RefUnwindSafe for DetrDecoder
impl Send for DetrDecoder
impl Sync for DetrDecoder
impl Unpin for DetrDecoder
impl UnsafeUnpin for DetrDecoder
impl UnwindSafe for DetrDecoder
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