#[repr(C)]pub struct RKLLMResultLogits {
pub logits: *const f32,
pub vocab_size: c_int,
pub num_tokens: c_int,
}
Expand description
@struct RKLLMResultLogits @brief Structure to hold the logits.
Fields§
§logits: *const f32
< Pointer to the logits (of size num_tokens * vocab_size).
vocab_size: c_int
< Size of the vocab.
num_tokens: c_int
< Number of tokens for which logits are stored.
Trait Implementations§
Source§impl Clone for RKLLMResultLogits
impl Clone for RKLLMResultLogits
Source§fn clone(&self) -> RKLLMResultLogits
fn clone(&self) -> RKLLMResultLogits
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 RKLLMResultLogits
impl Debug for RKLLMResultLogits
impl Copy for RKLLMResultLogits
Auto Trait Implementations§
impl Freeze for RKLLMResultLogits
impl RefUnwindSafe for RKLLMResultLogits
impl !Send for RKLLMResultLogits
impl !Sync for RKLLMResultLogits
impl Unpin for RKLLMResultLogits
impl UnwindSafe for RKLLMResultLogits
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