#[repr(C)]pub struct RKLLMMultiModelInput {
pub prompt: *mut c_char,
pub image_embed: *mut f32,
pub n_image_tokens: usize,
pub n_image: usize,
pub image_width: usize,
pub image_height: usize,
}
Expand description
@struct RKLLMMultiModelInput @brief Represents multimodal input (e.g., text and image).
Fields§
§prompt: *mut c_char
< Text prompt input.
image_embed: *mut f32
< Embedding of the images (of size n_image * n_image_tokens * image_embed_length).
n_image_tokens: usize
< Number of image_token.
n_image: usize
< Number of image.
image_width: usize
< Width of image.
image_height: usize
< Height of image.
Trait Implementations§
Source§impl Clone for RKLLMMultiModelInput
impl Clone for RKLLMMultiModelInput
Source§fn clone(&self) -> RKLLMMultiModelInput
fn clone(&self) -> RKLLMMultiModelInput
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 RKLLMMultiModelInput
impl Debug for RKLLMMultiModelInput
impl Copy for RKLLMMultiModelInput
Auto Trait Implementations§
impl Freeze for RKLLMMultiModelInput
impl RefUnwindSafe for RKLLMMultiModelInput
impl !Send for RKLLMMultiModelInput
impl !Sync for RKLLMMultiModelInput
impl Unpin for RKLLMMultiModelInput
impl UnwindSafe for RKLLMMultiModelInput
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