#[repr(C)]pub struct ggml_opt_params {
pub type_: ggml_opt_type,
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 adam: ggml_opt_params__bindgen_ty_1,
pub lbfgs: ggml_opt_params__bindgen_ty_2,
}Fields§
§type_: ggml_opt_type§n_threads: c_int§past: c_int§delta: f32§max_no_improvement: c_int§print_forward_graph: bool§print_backward_graph: bool§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 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 ggml_opt_params
impl Debug for ggml_opt_params
impl Copy for ggml_opt_params
Auto Trait Implementations§
impl Freeze for ggml_opt_params
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