Skip to main content

DiagGrads

Struct DiagGrads 

Source
pub struct DiagGrads<B: Backend> {
    pub d_v_bnlmhp: F<B, 6>,
    pub d_c_bnlmhr: F<B, 6>,
    pub d_b_bnlmhr: F<B, 6>,
    pub d_gamma_bnlh: F<B, 4>,
}
Expand description

Gradients produced by y_diag_correction_backward — the y_diag term’s contribution to d_v, d_c, d_b and the whole of d_gamma (no other term consumes γ).

Fields§

§d_v_bnlmhp: F<B, 6>

y_diag’s contribution to the gradient of v.

§d_c_bnlmhr: F<B, 6>

y_diag’s contribution to the gradient of C.

§d_b_bnlmhr: F<B, 6>

y_diag’s contribution to the gradient of B.

§d_gamma_bnlh: F<B, 4>

The gradient of γ.

Auto Trait Implementations§

§

impl<B> Freeze for DiagGrads<B>
where F<B, 6>: Freeze, F<B, 4>: Freeze,

§

impl<B> RefUnwindSafe for DiagGrads<B>
where F<B, 6>: RefUnwindSafe, F<B, 4>: RefUnwindSafe,

§

impl<B> Send for DiagGrads<B>
where F<B, 6>: Send, F<B, 4>: Send,

§

impl<B> Sync for DiagGrads<B>
where F<B, 6>: Sync, F<B, 4>: Sync,

§

impl<B> Unpin for DiagGrads<B>
where F<B, 6>: Unpin, F<B, 4>: Unpin,

§

impl<B> UnsafeUnpin for DiagGrads<B>
where F<B, 6>: UnsafeUnpin, F<B, 4>: UnsafeUnpin,

§

impl<B> UnwindSafe for DiagGrads<B>
where F<B, 6>: UnwindSafe, F<B, 4>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.