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

Object Safety§

This trait is not object safe.

Implementors§