pub struct RoutingObservation<'a, T> {
pub path: &'a str,
pub selected_experts: &'a T,
pub selected_scores: &'a T,
pub coefficients: &'a T,
pub routed_output: &'a T,
pub local_routed_output: Option<&'a T>,
pub reduced_routed_output: Option<&'a T>,
pub shared_output: Option<&'a T>,
pub combined_output: Option<&'a T>,
pub expert_count: i32,
}Expand description
Normalized routed-expert data emitted by architecture implementations.
Fields§
§path: &'a strStable path-like name of the routed block.
selected_experts: &'a TSelected expert IDs shaped [..., top_k].
selected_scores: &'a TSelected scores before optional top-k renormalization.
coefficients: &'a TFinal route weights applied to expert outputs.
routed_output: &'a TCombined routed expert contribution.
local_routed_output: Option<&'a T>Rank-local contribution before expert-parallel reduction.
reduced_routed_output: Option<&'a T>Globally reduced expert-parallel contribution.
Shared-expert contribution when the architecture has one.
combined_output: Option<&'a T>Combined routed and shared contribution when reported separately.
expert_count: i32Total number of routed experts.
Auto Trait Implementations§
impl<'a, T> Freeze for RoutingObservation<'a, T>
impl<'a, T> RefUnwindSafe for RoutingObservation<'a, T>
impl<'a, T> Send for RoutingObservation<'a, T>
impl<'a, T> Sync for RoutingObservation<'a, T>
impl<'a, T> Unpin for RoutingObservation<'a, T>
impl<'a, T> UnsafeUnpin for RoutingObservation<'a, T>
impl<'a, T> UnwindSafe for RoutingObservation<'a, T>
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