pub struct DqnModelConfig<Q>where
Q: OutDim,{
pub q_config: Option<Q>,
pub opt_config: OptimizerConfig,
}Expand description
Configuration of DqnModel.
Fields§
§q_config: Option<Q>§opt_config: OptimizerConfigImplementations§
Source§impl<Q> DqnModelConfig<Q>
impl<Q> DqnModelConfig<Q>
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>
impl<Q> Clone for DqnModelConfig<Q>
Source§fn clone(&self) -> DqnModelConfig<Q>
fn clone(&self) -> DqnModelConfig<Q>
Returns a duplicate 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> Debug for DqnModelConfig<Q>
impl<Q> Debug for DqnModelConfig<Q>
Source§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 for DqnModelConfig<Q>
impl<Q> PartialEq for DqnModelConfig<Q>
Source§impl<Q> Serialize for DqnModelConfig<Q>
impl<Q> Serialize for DqnModelConfig<Q>
impl<Q> StructuralPartialEq for DqnModelConfig<Q>where
Q: OutDim,
Auto Trait Implementations§
impl<Q> Freeze for DqnModelConfig<Q>where
Q: Freeze,
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