pub struct MoeGradientSelection {
pub input: bool,
pub logits: bool,
pub gate: bool,
pub up: bool,
pub down: bool,
}Expand description
Actual first-order derivatives requested by the caller or tracked AD parents.
Fields§
§input: boolPreserve upstream input derivatives independently of expert-weight trainability.
logits: boolOriginal fixed-selection logits derivative.
gate: boolOriginal FP32 gate cube derivative.
up: boolOriginal FP32 up cube derivative.
down: boolOriginal FP32 down cube derivative.
Trait Implementations§
Source§impl Clone for MoeGradientSelection
impl Clone for MoeGradientSelection
impl Copy for MoeGradientSelection
Source§impl Debug for MoeGradientSelection
impl Debug for MoeGradientSelection
impl Eq for MoeGradientSelection
Source§impl PartialEq for MoeGradientSelection
impl PartialEq for MoeGradientSelection
impl StructuralPartialEq for MoeGradientSelection
Auto Trait Implementations§
impl Freeze for MoeGradientSelection
impl RefUnwindSafe for MoeGradientSelection
impl Send for MoeGradientSelection
impl Sync for MoeGradientSelection
impl Unpin for MoeGradientSelection
impl UnsafeUnpin for MoeGradientSelection
impl UnwindSafe for MoeGradientSelection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.