OptimParams

Trait OptimParams 

Source
pub trait OptimParams: Optimizer {
    // Required methods
    fn params(&self) -> &Self::Config;
    fn set_params(&mut self, config: Self::Config);
}
Expand description

Trait for optimisers to expose their parameters

Required Methods§

Source

fn params(&self) -> &Self::Config

get the current parameters of the Optimiser

Source

fn set_params(&mut self, config: Self::Config)

set the current parameters of the Optimiser

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§