pub enum BlockOutput {
Hidden(Vec<f32>),
Logits(Vec<f32>),
}Expand description
Output produced by a BlockRunner.
Variants§
Hidden(Vec<f32>)
Hidden states to forward to the next block.
Logits(Vec<f32>)
Final logits (last token), produced only by the Last/Single block.
Auto Trait Implementations§
impl Freeze for BlockOutput
impl RefUnwindSafe for BlockOutput
impl Send for BlockOutput
impl Sync for BlockOutput
impl Unpin for BlockOutput
impl UnsafeUnpin for BlockOutput
impl UnwindSafe for BlockOutput
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