pub struct LayerShape {
pub attention: AttnShape,
pub ffn_dim: usize,
}Expand description
One layer’s shape.
Fields§
§attention: AttnShape§ffn_dim: usizeThe dense FFN width, n_ff(il). Zero is deci’s FFN-free layer
(deci.cpp:147-149): no ffn_norm, no gate/up/down.
Trait Implementations§
Source§impl Clone for LayerShape
impl Clone for LayerShape
impl Copy for LayerShape
Source§impl Debug for LayerShape
impl Debug for LayerShape
impl Eq for LayerShape
Source§impl PartialEq for LayerShape
impl PartialEq for LayerShape
impl StructuralPartialEq for LayerShape
Auto Trait Implementations§
impl Freeze for LayerShape
impl RefUnwindSafe for LayerShape
impl Send for LayerShape
impl Sync for LayerShape
impl Unpin for LayerShape
impl UnsafeUnpin for LayerShape
impl UnwindSafe for LayerShape
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,
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