Struct border_tch_agent::sac::SACConfig
source · [−]pub struct SACConfig<Q, P> where
Q: SubModel2<Output = Tensor>,
Q::Config: DeserializeOwned + Serialize + Debug + PartialEq + Clone,
P: SubModel<Output = (Tensor, Tensor)>,
P::Config: DeserializeOwned + Serialize + OutDim + Debug + PartialEq + Clone, {
pub device: Option<Device>,
/* private fields */
}Expand description
Constructs SAC.
Fields
device: Option<Device>Implementations
Sets the numper of parameter update steps per optimization step.
Interval before starting optimization.
Batch size.
Discount factor.
SAC-alpha.
Replay buffer capacity.
Reward scale.
It works for obtaining target values, not the values in logs.
Critic loss.
Configuration of actor.
Configuration of critic.
Trait Implementations
impl<Q: Debug, P: Debug> Debug for SACConfig<Q, P> where
Q: SubModel2<Output = Tensor>,
Q::Config: DeserializeOwned + Serialize + Debug + PartialEq + Clone,
P: SubModel<Output = (Tensor, Tensor)>,
P::Config: DeserializeOwned + Serialize + OutDim + Debug + PartialEq + Clone,
P::Config: Debug,
Q::Config: Debug,
impl<Q: Debug, P: Debug> Debug for SACConfig<Q, P> where
Q: SubModel2<Output = Tensor>,
Q::Config: DeserializeOwned + Serialize + Debug + PartialEq + Clone,
P: SubModel<Output = (Tensor, Tensor)>,
P::Config: DeserializeOwned + Serialize + OutDim + Debug + PartialEq + Clone,
P::Config: Debug,
Q::Config: Debug,
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
impl<Q: PartialEq, P: PartialEq> PartialEq<SACConfig<Q, P>> for SACConfig<Q, P> where
Q: SubModel2<Output = Tensor>,
Q::Config: DeserializeOwned + Serialize + Debug + PartialEq + Clone,
P: SubModel<Output = (Tensor, Tensor)>,
P::Config: DeserializeOwned + Serialize + OutDim + Debug + PartialEq + Clone,
P::Config: PartialEq,
Q::Config: PartialEq,
impl<Q: PartialEq, P: PartialEq> PartialEq<SACConfig<Q, P>> for SACConfig<Q, P> where
Q: SubModel2<Output = Tensor>,
Q::Config: DeserializeOwned + Serialize + Debug + PartialEq + Clone,
P: SubModel<Output = (Tensor, Tensor)>,
P::Config: DeserializeOwned + Serialize + OutDim + Debug + PartialEq + Clone,
P::Config: PartialEq,
Q::Config: PartialEq,
Auto Trait Implementations
impl<Q, P> RefUnwindSafe for SACConfig<Q, P> where
<P as SubModel>::Config: RefUnwindSafe,
<Q as SubModel2>::Config: RefUnwindSafe,
impl<Q, P> Send for SACConfig<Q, P> where
<P as SubModel>::Config: Send,
<Q as SubModel2>::Config: Send,
impl<Q, P> Sync for SACConfig<Q, P> where
<P as SubModel>::Config: Sync,
<Q as SubModel2>::Config: Sync,
impl<Q, P> Unpin for SACConfig<Q, P> where
<P as SubModel>::Config: Unpin,
<Q as SubModel2>::Config: Unpin,
impl<Q, P> UnwindSafe for SACConfig<Q, P> where
<P as SubModel>::Config: UnwindSafe,
<Q as SubModel2>::Config: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more