pub struct SkeletonLayer {
pub index: usize,
pub mixer: Mixer,
pub mlp: Mlp,
pub hyper_connection: bool,
pub is_mtp: bool,
}Expand description
One decoder layer’s structure.
Fields§
§index: usize§mixer: Mixer§mlp: Mlp§hyper_connection: boolFalse only for the MTP layer — see the module trap note.
is_mtp: boolTrue for layer 45. It is NOT part of the text stack.
Trait Implementations§
Source§impl Clone for SkeletonLayer
impl Clone for SkeletonLayer
Source§fn clone(&self) -> SkeletonLayer
fn clone(&self) -> SkeletonLayer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SkeletonLayer
impl Debug for SkeletonLayer
Source§impl PartialEq for SkeletonLayer
impl PartialEq for SkeletonLayer
impl Copy for SkeletonLayer
impl Eq for SkeletonLayer
impl StructuralPartialEq for SkeletonLayer
Auto Trait Implementations§
impl Freeze for SkeletonLayer
impl RefUnwindSafe for SkeletonLayer
impl Send for SkeletonLayer
impl Sync for SkeletonLayer
impl Unpin for SkeletonLayer
impl UnwindSafe for SkeletonLayer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.