Struct llama_cpp_sys_2::ggml_opt_params
source · #[repr(C)]pub struct ggml_opt_params {
pub type_: ggml_opt_type,
pub graph_size: usize,
pub n_threads: c_int,
pub past: c_int,
pub delta: f32,
pub max_no_improvement: c_int,
pub print_forward_graph: bool,
pub print_backward_graph: bool,
pub n_gradient_accumulation: c_int,
pub adam: ggml_opt_params__bindgen_ty_1,
pub lbfgs: ggml_opt_params__bindgen_ty_2,
}Fields§
§type_: ggml_opt_type§graph_size: usize§n_threads: c_int§past: c_int§delta: f32§max_no_improvement: c_int§print_forward_graph: bool§print_backward_graph: bool§n_gradient_accumulation: c_int§adam: ggml_opt_params__bindgen_ty_1§lbfgs: ggml_opt_params__bindgen_ty_2Trait Implementations§
source§impl Clone for ggml_opt_params
impl Clone for ggml_opt_params
source§fn clone(&self) -> ggml_opt_params
fn clone(&self) -> ggml_opt_params
Returns a copy 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 ggml_opt_params
impl Debug for ggml_opt_params
source§impl PartialEq for ggml_opt_params
impl PartialEq for ggml_opt_params
source§fn eq(&self, other: &ggml_opt_params) -> bool
fn eq(&self, other: &ggml_opt_params) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ggml_opt_params
impl StructuralPartialEq for ggml_opt_params
Auto Trait Implementations§
impl RefUnwindSafe for ggml_opt_params
impl Send for ggml_opt_params
impl Sync for ggml_opt_params
impl Unpin for ggml_opt_params
impl UnwindSafe for ggml_opt_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