pub struct NativeMoeDispatched<B: MoeDispatchOps> {
pub values: Tensor<B, 2>,
pub weights: Tensor<B, 2>,
pub selected_experts: Tensor<B, 2, Int>,
pub row_experts: Tensor<B, 1, Int>,
pub state: B::MoeDispatchState,
}Available on crate feature
api only.Expand description
Actual typed native source-side dispatched rows and differentiable FP32 continuous weights.
Fields§
§values: Tensor<B, 2>Original expert-sorted activation COPY rows.
weights: Tensor<B, 2>Original FP32 continuous weights with the original source logits graph.
selected_experts: Tensor<B, 2, Int>Original selected native U32 IDs per source token.
row_experts: Tensor<B, 1, Int>Original native U32 expert IDs aligned with sorted assignment rows.
state: B::MoeDispatchStateOriginal valid private native dispatch and router metadata.
Trait Implementations§
Source§impl<B: Debug + MoeDispatchOps> Debug for NativeMoeDispatched<B>where
B::MoeDispatchState: Debug,
impl<B: Debug + MoeDispatchOps> Debug for NativeMoeDispatched<B>where
B::MoeDispatchState: Debug,
Auto Trait Implementations§
impl<B> Freeze for NativeMoeDispatched<B>
impl<B> RefUnwindSafe for NativeMoeDispatched<B>where
Tensor<B, 2>: RefUnwindSafe,
Tensor<B, 2, Int>: RefUnwindSafe,
Tensor<B, 1, Int>: RefUnwindSafe,
<B as MoeDispatchOps>::MoeDispatchState: RefUnwindSafe,
impl<B> Send for NativeMoeDispatched<B>
impl<B> Sync for NativeMoeDispatched<B>
impl<B> Unpin for NativeMoeDispatched<B>
impl<B> UnsafeUnpin for NativeMoeDispatched<B>where
Tensor<B, 2>: UnsafeUnpin,
Tensor<B, 2, Int>: UnsafeUnpin,
Tensor<B, 1, Int>: UnsafeUnpin,
<B as MoeDispatchOps>::MoeDispatchState: UnsafeUnpin,
impl<B> UnwindSafe for NativeMoeDispatched<B>where
Tensor<B, 2>: UnwindSafe,
Tensor<B, 2, Int>: UnwindSafe,
Tensor<B, 1, Int>: UnwindSafe,
<B as MoeDispatchOps>::MoeDispatchState: 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