#[repr(C)]pub struct ggml_opt_params {
pub backend_sched: ggml_backend_sched_t,
pub ctx_compute: *mut ggml_context,
pub inputs: *mut ggml_tensor,
pub outputs: *mut ggml_tensor,
pub loss_type: ggml_opt_loss_type,
pub build_type: ggml_opt_build_type,
pub opt_period: i32,
pub get_opt_pars: ggml_opt_get_optimizer_params,
pub get_opt_pars_ud: *mut c_void,
}
Fields§
§backend_sched: ggml_backend_sched_t
§ctx_compute: *mut ggml_context
§inputs: *mut ggml_tensor
§outputs: *mut ggml_tensor
§loss_type: ggml_opt_loss_type
§build_type: ggml_opt_build_type
§opt_period: i32
§get_opt_pars: ggml_opt_get_optimizer_params
§get_opt_pars_ud: *mut c_void
Trait 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
Source§impl PartialEq for ggml_opt_params
impl PartialEq for ggml_opt_params
impl Copy for ggml_opt_params
impl StructuralPartialEq 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