pub enum GradientClipping {
Value(f32),
Norm(f32),
}Expand description
Gradient Clipping provides a way to mitigate exploding gradients by clipping every component of the gradient by value or by norm during backpropagation.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GradientClipping
impl RefUnwindSafe for GradientClipping
impl Send for GradientClipping
impl Sync for GradientClipping
impl Unpin for GradientClipping
impl UnsafeUnpin for GradientClipping
impl UnwindSafe for GradientClipping
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