pub enum BetaSchedule {
Linear,
ScaledLinear,
SquaredcosCapV2,
}
Expand description
This represents how beta ranges from its minimum value to the maximum during training.
Variants§
Linear
Linear interpolation.
ScaledLinear
Linear interpolation of the square root of beta.
SquaredcosCapV2
Glide cosine schedule
Trait Implementations§
source§impl Clone for BetaSchedule
impl Clone for BetaSchedule
source§fn clone(&self) -> BetaSchedule
fn clone(&self) -> BetaSchedule
Returns a copy 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 Debug for BetaSchedule
impl Debug for BetaSchedule
impl Copy for BetaSchedule
Auto Trait Implementations§
impl Freeze for BetaSchedule
impl RefUnwindSafe for BetaSchedule
impl Send for BetaSchedule
impl Sync for BetaSchedule
impl Unpin for BetaSchedule
impl UnwindSafe for BetaSchedule
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