Enum border_tch_agent::opt::OptimizerConfig
source · pub enum OptimizerConfig {
Adam {
lr: f64,
},
}Expand description
Configures an optimizer for training neural networks in an RL agent.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for OptimizerConfig
impl Clone for OptimizerConfig
source§fn clone(&self) -> OptimizerConfig
fn clone(&self) -> OptimizerConfig
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 OptimizerConfig
impl Debug for OptimizerConfig
source§impl<'de> Deserialize<'de> for OptimizerConfig
impl<'de> Deserialize<'de> for OptimizerConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<OptimizerConfig> for OptimizerConfig
impl PartialEq<OptimizerConfig> for OptimizerConfig
source§fn eq(&self, other: &OptimizerConfig) -> bool
fn eq(&self, other: &OptimizerConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for OptimizerConfig
impl Serialize for OptimizerConfig
impl StructuralPartialEq for OptimizerConfig
Auto Trait Implementations§
impl RefUnwindSafe for OptimizerConfig
impl Send for OptimizerConfig
impl Sync for OptimizerConfig
impl Unpin for OptimizerConfig
impl UnwindSafe for OptimizerConfig
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