Struct border_tch_agent::dqn::DqnModelConfig
source · pub struct DqnModelConfig<Q>where
Q: OutDim,{ /* private fields */ }Expand description
Configuration of DqnModel.
Implementations§
source§impl<Q> DqnModelConfig<Q>where
Q: DeserializeOwned + Serialize + OutDim,
impl<Q> DqnModelConfig<Q>where Q: DeserializeOwned + Serialize + OutDim,
sourcepub fn opt_config(self, v: OptimizerConfig) -> Self
pub fn opt_config(self, v: OptimizerConfig) -> Self
Sets optimizer configuration.
Trait Implementations§
source§impl<Q> Clone for DqnModelConfig<Q>where
Q: OutDim + Clone,
impl<Q> Clone for DqnModelConfig<Q>where Q: OutDim + Clone,
source§fn clone(&self) -> DqnModelConfig<Q>
fn clone(&self) -> DqnModelConfig<Q>
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<Q> Default for DqnModelConfig<Q>where
Q: OutDim,
impl<Q> Default for DqnModelConfig<Q>where Q: OutDim,
source§impl<'de, Q> Deserialize<'de> for DqnModelConfig<Q>where
Q: OutDim + Deserialize<'de>,
impl<'de, Q> Deserialize<'de> for DqnModelConfig<Q>where Q: OutDim + Deserialize<'de>,
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<Q> PartialEq<DqnModelConfig<Q>> for DqnModelConfig<Q>where
Q: OutDim + PartialEq,
impl<Q> PartialEq<DqnModelConfig<Q>> for DqnModelConfig<Q>where Q: OutDim + PartialEq,
source§fn eq(&self, other: &DqnModelConfig<Q>) -> bool
fn eq(&self, other: &DqnModelConfig<Q>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<Q> StructuralPartialEq for DqnModelConfig<Q>where Q: OutDim,
Auto Trait Implementations§
impl<Q> RefUnwindSafe for DqnModelConfig<Q>where Q: RefUnwindSafe,
impl<Q> Send for DqnModelConfig<Q>where Q: Send,
impl<Q> Sync for DqnModelConfig<Q>where Q: Sync,
impl<Q> Unpin for DqnModelConfig<Q>where Q: Unpin,
impl<Q> UnwindSafe for DqnModelConfig<Q>where Q: UnwindSafe,
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