Struct llama_cpp_sys_2::ggml_opt_context
source · #[repr(C)]pub struct ggml_opt_context {
pub ctx: *mut ggml_context,
pub params: ggml_opt_params,
pub iter: c_int,
pub nx: i64,
pub just_initialized: bool,
pub loss_before: f32,
pub loss_after: f32,
pub adam: ggml_opt_context__bindgen_ty_1,
pub lbfgs: ggml_opt_context__bindgen_ty_2,
}Fields§
§ctx: *mut ggml_context§params: ggml_opt_params§iter: c_int§nx: i64§just_initialized: bool§loss_before: f32§loss_after: f32§adam: ggml_opt_context__bindgen_ty_1§lbfgs: ggml_opt_context__bindgen_ty_2Trait Implementations§
source§impl Clone for ggml_opt_context
impl Clone for ggml_opt_context
source§fn clone(&self) -> ggml_opt_context
fn clone(&self) -> ggml_opt_context
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_context
impl Debug for ggml_opt_context
source§impl PartialEq for ggml_opt_context
impl PartialEq for ggml_opt_context
source§fn eq(&self, other: &ggml_opt_context) -> bool
fn eq(&self, other: &ggml_opt_context) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ggml_opt_context
impl StructuralPartialEq for ggml_opt_context
Auto Trait Implementations§
impl RefUnwindSafe for ggml_opt_context
impl !Send for ggml_opt_context
impl !Sync for ggml_opt_context
impl Unpin for ggml_opt_context
impl UnwindSafe for ggml_opt_context
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