Struct border_tch_agent::sac::EntCoef
source · pub struct EntCoef { /* private fields */ }Expand description
The entropy coefficient of SAC.
Implementations§
source§impl EntCoef
impl EntCoef
sourcepub fn new(mode: EntCoefMode, device: Device) -> Self
pub fn new(mode: EntCoefMode, device: Device) -> Self
Constructs an instance of EntCoef.
sourcepub fn backward_step(&mut self, loss: &Tensor)
pub fn backward_step(&mut self, loss: &Tensor)
Does an optimization step given a loss.
Auto Trait Implementations§
impl RefUnwindSafe for EntCoef
impl Send for EntCoef
impl !Sync for EntCoef
impl Unpin for EntCoef
impl UnwindSafe for EntCoef
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