pub struct VisionProjectionLearnedQueriesInputs {
pub patches: HirNodeId,
pub embed_w: HirNodeId,
pub pos_embed: HirNodeId,
pub norm_w: HirNodeId,
pub ones: HirNodeId,
pub zero_beta: HirNodeId,
pub queries: HirNodeId,
pub k_proj: HirNodeId,
pub v_proj: HirNodeId,
pub lm_proj_w: HirNodeId,
}Expand description
Explicit-bind input handles for
build_vision_projection_learned_queries_hir. The pool block
is a single-head cross-attention with num_soft_tokens learned
queries attending to num_patches projected patch features.
Fields§
§patches: HirNodeId[B, P, patch_features].
embed_w: HirNodeIdPer-patch linear: [patch_features, mm_embed_dim].
pos_embed: HirNodeIdPositional bias for the patches: [P, mm_embed_dim].
norm_w: HirNodeIdRMS gamma for the post-embed norm: [mm_embed_dim].
ones: HirNodeIdAll-ones tensor matching norm_w’s shape.
zero_beta: HirNodeIdAll-zeros tensor matching norm_w’s shape.
queries: HirNodeIdLearned query bank: [num_soft_tokens, mm_embed_dim].
k_proj: HirNodeIdK projection on patch features: [mm_embed_dim, mm_embed_dim].
v_proj: HirNodeIdV projection on patch features: [mm_embed_dim, mm_embed_dim].
lm_proj_w: HirNodeIdOutput projection from queries-attention space → LM hidden:
[mm_embed_dim, output_proj_dims].
Trait Implementations§
Source§impl Clone for VisionProjectionLearnedQueriesInputs
impl Clone for VisionProjectionLearnedQueriesInputs
Source§fn clone(&self) -> VisionProjectionLearnedQueriesInputs
fn clone(&self) -> VisionProjectionLearnedQueriesInputs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VisionProjectionLearnedQueriesInputs
Auto Trait Implementations§
impl Freeze for VisionProjectionLearnedQueriesInputs
impl RefUnwindSafe for VisionProjectionLearnedQueriesInputs
impl Send for VisionProjectionLearnedQueriesInputs
impl Sync for VisionProjectionLearnedQueriesInputs
impl Unpin for VisionProjectionLearnedQueriesInputs
impl UnsafeUnpin for VisionProjectionLearnedQueriesInputs
impl UnwindSafe for VisionProjectionLearnedQueriesInputs
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> 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