pub struct MoeReceivedSelection {
pub input: bool,
pub gate: bool,
pub up: bool,
pub down: bool,
}Expand description
Actual original received-expert derivatives requested by native callers or tracked parents.
Fields§
§input: boolReal upstream activation derivative even when every expert matrix is frozen.
gate: boolOriginal FP32 local gate-cube derivative.
up: boolOriginal FP32 local up-cube derivative.
down: boolOriginal FP32 local down-cube derivative.
Trait Implementations§
Source§impl Clone for MoeReceivedSelection
impl Clone for MoeReceivedSelection
Source§fn clone(&self) -> MoeReceivedSelection
fn clone(&self) -> MoeReceivedSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MoeReceivedSelection
Source§impl Debug for MoeReceivedSelection
impl Debug for MoeReceivedSelection
impl Eq for MoeReceivedSelection
Source§impl PartialEq for MoeReceivedSelection
impl PartialEq for MoeReceivedSelection
impl StructuralPartialEq for MoeReceivedSelection
Auto Trait Implementations§
impl Freeze for MoeReceivedSelection
impl RefUnwindSafe for MoeReceivedSelection
impl Send for MoeReceivedSelection
impl Sync for MoeReceivedSelection
impl Unpin for MoeReceivedSelection
impl UnsafeUnpin for MoeReceivedSelection
impl UnwindSafe for MoeReceivedSelection
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.