pub struct GenerationStep {
pub position: usize,
pub token_id: usize,
pub probability: f32,
pub logit: f32,
}Fields§
§position: usize§token_id: usize§probability: f32§logit: f32Trait Implementations§
Source§impl Clone for GenerationStep
impl Clone for GenerationStep
Source§fn clone(&self) -> GenerationStep
fn clone(&self) -> GenerationStep
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenerationStep
impl Debug for GenerationStep
Source§impl<'de> Deserialize<'de> for GenerationStep
impl<'de> Deserialize<'de> for GenerationStep
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GenerationStep
impl PartialEq for GenerationStep
Source§impl Serialize for GenerationStep
impl Serialize for GenerationStep
impl StructuralPartialEq for GenerationStep
Auto Trait Implementations§
impl Freeze for GenerationStep
impl RefUnwindSafe for GenerationStep
impl Send for GenerationStep
impl Sync for GenerationStep
impl Unpin for GenerationStep
impl UnsafeUnpin for GenerationStep
impl UnwindSafe for GenerationStep
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