pub struct GatedDeltaStep<'a> {
pub q: &'a [f32],
pub k: &'a [f32],
pub v: &'a [f32],
pub g: &'a [f32],
pub beta: &'a [f32],
pub state: &'a mut [f32],
pub n_heads: usize,
pub dk: usize,
pub dv: usize,
}Expand description
Bundled args for gated_delta_step (avoids clippy too_many_arguments).
Fields§
§q: &'a [f32]§k: &'a [f32]§v: &'a [f32]§g: &'a [f32]§beta: &'a [f32]§state: &'a mut [f32]§n_heads: usize§dk: usize§dv: usizeAuto Trait Implementations§
impl<'a> !UnwindSafe for GatedDeltaStep<'a>
impl<'a> Freeze for GatedDeltaStep<'a>
impl<'a> RefUnwindSafe for GatedDeltaStep<'a>
impl<'a> Send for GatedDeltaStep<'a>
impl<'a> Sync for GatedDeltaStep<'a>
impl<'a> Unpin for GatedDeltaStep<'a>
impl<'a> UnsafeUnpin for GatedDeltaStep<'a>
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> 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