pub struct Candidate {
pub id: u32,
pub logit: f32,
pub p: f32,
}Expand description
One token candidate with its current logit and probability.
Fields§
§id: u32Token identifier from the original logits index.
logit: f32Current logit.
p: f32Probability from the most recent softmax.
Trait Implementations§
impl Copy for Candidate
impl StructuralPartialEq for Candidate
Auto Trait Implementations§
impl Freeze for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidate
impl UnwindSafe for Candidate
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