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 Freeze for EntCoef
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