pub struct SkipStream<'a> {
pub rows: &'a [f32],
}Expand description
The skip source for one forward pass: the normed embedding rows the
bodies captured before layer 0, [rows, hidden_dim]. None for a
model without the stream – an Option the FFN bodies take as an
argument, so a body cannot be reached with the question unasked.
Fields§
§rows: &'a [f32]Trait Implementations§
Source§impl<'a> Clone for SkipStream<'a>
impl<'a> Clone for SkipStream<'a>
impl<'a> Copy for SkipStream<'a>
Auto Trait Implementations§
impl<'a> Freeze for SkipStream<'a>
impl<'a> RefUnwindSafe for SkipStream<'a>
impl<'a> Send for SkipStream<'a>
impl<'a> Sync for SkipStream<'a>
impl<'a> Unpin for SkipStream<'a>
impl<'a> UnsafeUnpin for SkipStream<'a>
impl<'a> UnwindSafe for SkipStream<'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> 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