#[repr(C)]pub struct RKLLMEmbedInput {
pub embed: *mut f32,
pub n_tokens: usize,
}
Expand description
@struct RKLLMEmbedInput @brief Represents an embedding input to the LLM.
Fields§
§embed: *mut f32
< Pointer to the embedding vector (of size n_tokens * n_embed).
n_tokens: usize
< Number of tokens represented in the embedding.
Trait Implementations§
Source§impl Clone for RKLLMEmbedInput
impl Clone for RKLLMEmbedInput
Source§fn clone(&self) -> RKLLMEmbedInput
fn clone(&self) -> RKLLMEmbedInput
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 RKLLMEmbedInput
impl Debug for RKLLMEmbedInput
impl Copy for RKLLMEmbedInput
Auto Trait Implementations§
impl Freeze for RKLLMEmbedInput
impl RefUnwindSafe for RKLLMEmbedInput
impl !Send for RKLLMEmbedInput
impl !Sync for RKLLMEmbedInput
impl Unpin for RKLLMEmbedInput
impl UnwindSafe for RKLLMEmbedInput
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