#[repr(C)]pub struct BaseRTGenerationStats {
pub prompt_tokens: c_int,
pub generated_tokens: c_int,
pub prefill_time_ms: c_float,
pub decode_time_ms: c_float,
pub prefill_tokens_per_sec: c_float,
pub decode_tokens_per_sec: c_float,
}Expand description
Generation result statistics.
Fields§
§prompt_tokens: c_int§generated_tokens: c_int§prefill_time_ms: c_float§decode_time_ms: c_float§prefill_tokens_per_sec: c_float§decode_tokens_per_sec: c_floatTrait Implementations§
Source§impl Clone for BaseRTGenerationStats
impl Clone for BaseRTGenerationStats
impl Copy for BaseRTGenerationStats
Source§impl Debug for BaseRTGenerationStats
impl Debug for BaseRTGenerationStats
Auto Trait Implementations§
impl Forget for BaseRTGenerationStats
impl Freeze for BaseRTGenerationStats
impl RefUnwindSafe for BaseRTGenerationStats
impl Send for BaseRTGenerationStats
impl Sync for BaseRTGenerationStats
impl Unpin for BaseRTGenerationStats
impl UnsafeUnpin for BaseRTGenerationStats
impl UnwindSafe for BaseRTGenerationStats
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