#[repr(C)]pub struct mtmd_context_params {
pub use_gpu: bool,
pub print_timings: bool,
pub n_threads: c_int,
pub image_marker: *const c_char,
pub media_marker: *const c_char,
pub flash_attn_type: llama_flash_attn_type,
pub warmup: bool,
pub image_min_tokens: c_int,
pub image_max_tokens: c_int,
pub cb_eval: ggml_backend_sched_eval_callback,
pub cb_eval_user_data: *mut c_void,
}Fields§
§use_gpu: bool§print_timings: bool§n_threads: c_int§image_marker: *const c_char§media_marker: *const c_char§flash_attn_type: llama_flash_attn_type§warmup: bool§image_min_tokens: c_int§image_max_tokens: c_int§cb_eval: ggml_backend_sched_eval_callback§cb_eval_user_data: *mut c_voidTrait Implementations§
Source§impl Clone for mtmd_context_params
impl Clone for mtmd_context_params
Source§fn clone(&self) -> mtmd_context_params
fn clone(&self) -> mtmd_context_params
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 mtmd_context_params
impl Debug for mtmd_context_params
Source§impl PartialEq for mtmd_context_params
impl PartialEq for mtmd_context_params
Source§fn eq(&self, other: &mtmd_context_params) -> bool
fn eq(&self, other: &mtmd_context_params) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for mtmd_context_params
impl StructuralPartialEq for mtmd_context_params
Auto Trait Implementations§
impl Freeze for mtmd_context_params
impl RefUnwindSafe for mtmd_context_params
impl !Send for mtmd_context_params
impl !Sync for mtmd_context_params
impl Unpin for mtmd_context_params
impl UnsafeUnpin for mtmd_context_params
impl UnwindSafe for mtmd_context_params
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