pub struct RoutingDecision<'a, T> {
pub ids: &'a T,
pub coefficients: &'a T,
}Expand description
Borrowed pre-dispatch decision, independent of expert outputs or shared experts.
Fields§
§ids: &'a TExact global expert IDs shaped [token_rows, top_k].
coefficients: &'a TFinal coefficients used for dispatch.
Trait Implementations§
Source§impl<'a, T> From<&'a GroupSelection<T>> for RoutingDecision<'a, T>
impl<'a, T> From<&'a GroupSelection<T>> for RoutingDecision<'a, T>
Source§fn from(routes: &'a GroupSelection<T>) -> Self
fn from(routes: &'a GroupSelection<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, T> Freeze for RoutingDecision<'a, T>
impl<'a, T> RefUnwindSafe for RoutingDecision<'a, T>where
&'a T: RefUnwindSafe,
impl<'a, T> Send for RoutingDecision<'a, T>
impl<'a, T> Sync for RoutingDecision<'a, T>
impl<'a, T> Unpin for RoutingDecision<'a, T>
impl<'a, T> UnsafeUnpin for RoutingDecision<'a, T>where
&'a T: UnsafeUnpin,
impl<'a, T> UnwindSafe for RoutingDecision<'a, T>where
&'a T: UnwindSafe,
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