pub struct Outputs {
pub logits: Vec<f32>,
pub act: Vec<[f32; 2]>,
}Expand description
What a batch produces. Reused across batches, so after the first few it does not allocate.
Fields§
§logits: Vec<f32>One logit per marker, in batch order.
act: Vec<[f32; 2]>The act head, one pair per sequence.
Trait Implementations§
impl StructuralPartialEq for Outputs
Auto Trait Implementations§
impl Freeze for Outputs
impl RefUnwindSafe for Outputs
impl Send for Outputs
impl Sync for Outputs
impl Unpin for Outputs
impl UnsafeUnpin for Outputs
impl UnwindSafe for Outputs
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