pub struct TwoWayBlockSpec {Show 16 fields
pub self_attn: AttentionSpec,
pub norm1_g: Vec<f32>,
pub norm1_b: Vec<f32>,
pub cross_token_to_image: AttentionSpec,
pub norm2_g: Vec<f32>,
pub norm2_b: Vec<f32>,
pub mlp_lin1_w: Vec<f32>,
pub mlp_lin1_b: Vec<f32>,
pub mlp_lin2_w: Vec<f32>,
pub mlp_lin2_b: Vec<f32>,
pub norm3_g: Vec<f32>,
pub norm3_b: Vec<f32>,
pub cross_image_to_token: AttentionSpec,
pub norm4_g: Vec<f32>,
pub norm4_b: Vec<f32>,
pub skip_first_layer_pe: bool,
}Fields§
§self_attn: AttentionSpec§norm1_g: Vec<f32>§norm1_b: Vec<f32>§cross_token_to_image: AttentionSpec§norm2_g: Vec<f32>§norm2_b: Vec<f32>§mlp_lin1_w: Vec<f32>§mlp_lin1_b: Vec<f32>§mlp_lin2_w: Vec<f32>§mlp_lin2_b: Vec<f32>§norm3_g: Vec<f32>§norm3_b: Vec<f32>§cross_image_to_token: AttentionSpec§norm4_g: Vec<f32>§norm4_b: Vec<f32>§skip_first_layer_pe: boolTrait Implementations§
Source§impl Clone for TwoWayBlockSpec
impl Clone for TwoWayBlockSpec
Source§fn clone(&self) -> TwoWayBlockSpec
fn clone(&self) -> TwoWayBlockSpec
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 moreAuto Trait Implementations§
impl Freeze for TwoWayBlockSpec
impl RefUnwindSafe for TwoWayBlockSpec
impl Send for TwoWayBlockSpec
impl Sync for TwoWayBlockSpec
impl Unpin for TwoWayBlockSpec
impl UnsafeUnpin for TwoWayBlockSpec
impl UnwindSafe for TwoWayBlockSpec
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