pub struct BcModelConfig<C>{
pub policy_model_config: Option<C>,
pub opt_config: OptimizerConfig,
}Expand description
Configuration of BcModel.
The type parameter C should be a configuration of policy model, which should outputs a tensor.
The policy model supports both discrete and continuous action spaces, leaving the interpretation
of the output to the caller.
Fields§
§policy_model_config: Option<C>§opt_config: OptimizerConfigImplementations§
Source§impl<C> BcModelConfig<C>
impl<C> BcModelConfig<C>
Sourcepub fn policy_model_config(self, v: C) -> Self
pub fn policy_model_config(self, v: C) -> Self
Sets configurations for the policy model.
Sourcepub fn opt_config(self, v: OptimizerConfig) -> Self
pub fn opt_config(self, v: OptimizerConfig) -> Self
Sets optimizer configuration.
Trait Implementations§
Source§impl<C> Clone for BcModelConfig<C>
impl<C> Clone for BcModelConfig<C>
Source§fn clone(&self) -> BcModelConfig<C>
fn clone(&self) -> BcModelConfig<C>
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<C> Debug for BcModelConfig<C>
impl<C> Debug for BcModelConfig<C>
Source§impl<C> Default for BcModelConfig<C>
impl<C> Default for BcModelConfig<C>
Source§impl<'de, C> Deserialize<'de> for BcModelConfig<C>
impl<'de, C> Deserialize<'de> for BcModelConfig<C>
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<C> PartialEq for BcModelConfig<C>
impl<C> PartialEq for BcModelConfig<C>
Source§impl<C> Serialize for BcModelConfig<C>
impl<C> Serialize for BcModelConfig<C>
impl<C> StructuralPartialEq for BcModelConfig<C>
Auto Trait Implementations§
impl<C> Freeze for BcModelConfig<C>where
C: Freeze,
impl<C> RefUnwindSafe for BcModelConfig<C>where
C: RefUnwindSafe,
impl<C> Send for BcModelConfig<C>where
C: Send,
impl<C> Sync for BcModelConfig<C>where
C: Sync,
impl<C> Unpin for BcModelConfig<C>where
C: Unpin,
impl<C> UnwindSafe for BcModelConfig<C>where
C: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more