pub struct RecurrentMask {
pub layers: Vec<bool>,
pub block: AttnShape,
}Expand description
Which layers are recurrent AND what block they run.
One value from one constructor (recurrent_layers): the mask
alone would leave the block to be decided again somewhere else, and
a file whose mask came from one architecture and whose block came
from another is exactly this repo’s dominant bug shape.
Fields§
§layers: Vec<bool>One entry per TRUNK layer.
block: AttnShapeTrait Implementations§
Source§impl Clone for RecurrentMask
impl Clone for RecurrentMask
Source§impl Debug for RecurrentMask
impl Debug for RecurrentMask
impl Eq for RecurrentMask
Source§impl PartialEq for RecurrentMask
impl PartialEq for RecurrentMask
impl StructuralPartialEq for RecurrentMask
Auto Trait Implementations§
impl Freeze for RecurrentMask
impl RefUnwindSafe for RecurrentMask
impl Send for RecurrentMask
impl Sync for RecurrentMask
impl Unpin for RecurrentMask
impl UnsafeUnpin for RecurrentMask
impl UnwindSafe for RecurrentMask
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