pub struct LinearGradients {
pub weight: Array2<f64>,
pub bias: Array2<f64>,
}Expand description
Holds gradients for linear layer parameters during backpropagation
Fields§
§weight: Array2<f64>§bias: Array2<f64>Trait Implementations§
Source§impl Clone for LinearGradients
impl Clone for LinearGradients
Source§fn clone(&self) -> LinearGradients
fn clone(&self) -> LinearGradients
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for LinearGradients
impl RefUnwindSafe for LinearGradients
impl Send for LinearGradients
impl Sync for LinearGradients
impl Unpin for LinearGradients
impl UnwindSafe for LinearGradients
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