Struct border_tch_agent::sac::Actor
source · pub struct Actor<P>where
P: SubModel<Output = (Tensor, Tensor)>,
P::Config: DeserializeOwned + Serialize + OutDim,{ /* private fields */ }Expand description
Represents a stochastic policy for SAC agents.
Implementations§
Trait Implementations§
source§impl<P> Clone for Actor<P>where
P: SubModel<Output = (Tensor, Tensor)>,
P::Config: DeserializeOwned + Serialize + OutDim,
impl<P> Clone for Actor<P>where P: SubModel<Output = (Tensor, Tensor)>, P::Config: DeserializeOwned + Serialize + OutDim,
source§impl<P> ModelBase for Actor<P>where
P: SubModel<Output = (Tensor, Tensor)>,
P::Config: DeserializeOwned + Serialize + OutDim,
impl<P> ModelBase for Actor<P>where P: SubModel<Output = (Tensor, Tensor)>, P::Config: DeserializeOwned + Serialize + OutDim,
source§fn backward_step(&mut self, loss: &Tensor)
fn backward_step(&mut self, loss: &Tensor)
Trains the network given a loss.
source§fn get_var_store_mut(&mut self) -> &mut VarStore
fn get_var_store_mut(&mut self) -> &mut VarStore
Returns
var_store as mutable reference.source§fn get_var_store(&self) -> &VarStore
fn get_var_store(&self) -> &VarStore
Returns
var_store.Auto Trait Implementations§
impl<P> RefUnwindSafe for Actor<P>where P: RefUnwindSafe,
impl<P> Send for Actor<P>where P: Send,
impl<P> !Sync for Actor<P>
impl<P> Unpin for Actor<P>where P: Unpin,
impl<P> UnwindSafe for Actor<P>where P: 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