pub struct SlotEmbed { /* private fields */ }Expand description
The learned per-reference slot embedding: slot_id through Fourier
features and a two-layer SiLU MLP, landing on the latent’s channel count.
Reproduces the adapter’s own definition exactly — the index is divided by
16 before the phases are taken, and the raw scaled value is the first
feature, so the input width is 1 + 2·num_frequencies.
Implementations§
Auto Trait Implementations§
impl Freeze for SlotEmbed
impl RefUnwindSafe for SlotEmbed
impl Send for SlotEmbed
impl Sync for SlotEmbed
impl Unpin for SlotEmbed
impl UnsafeUnpin for SlotEmbed
impl UnwindSafe for SlotEmbed
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