oa::ml::optim::NoOpOptimizer

Optimizer for externally authored parameter updates. NoOpOptimizer lets callers use crate::ml::ItTraining for cadence, metrics, and callbacks while the step body owns all parameter mutation.

StRust public API

Declaration

pub struct NoOpOptimizer { /* private fields */ }
Public Rust declaration.

Public Methods

fn clone(&self) -> NoOpOptimizer
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn zero_grad(&self)
fn step(&mut self) -> Result<()>
fn learning_rate(&self) -> f32
fn set_learning_rate(&mut self, learning_rate: f32) -> Result<()>
fn step_count(&self) -> u64
fn belongs_to(&self, _engine: &Engine) -> bool

Associated Functions

pub fn new(learning_rate: f32) -> Result<Self>
fn default() -> Self

Public Method Documentation

fn clone( &self ) -> NoOpOptimizer
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn zero_grad( &self )
No public source comment is attached to this declaration.
fn step(&mut self) -> Result<()>
No public source comment is attached to this declaration.
fn learning_rate( &self ) -> f32
No public source comment is attached to this declaration.
fn set_learning_rate(&mut self, learning_rate: f32) -> Result<()>
No public source comment is attached to this declaration.
fn step_count( &self ) -> u64
No public source comment is attached to this declaration.
fn belongs_to( &self, _engine: &Engine ) -> bool
No public source comment is attached to this declaration.
pub fn new( learning_rate: f32 ) -> Result<Self>
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.