pub struct LocalMask {
pub batch_size: usize,
pub window_size: usize,
}Expand description
Local (windowed) attention mask
Each position attends only to a fixed window of nearby positions.
Fields§
§batch_size: usizeBatch size
window_size: usizeWindow size (attends to ±window_size positions)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LocalMask
impl RefUnwindSafe for LocalMask
impl Send for LocalMask
impl Sync for LocalMask
impl Unpin for LocalMask
impl UnwindSafe for LocalMask
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