Enum MoeError
pub enum MoeError {
InvalidTopK,
BufferTooSmall,
InsufficientExperts,
TopKExceedsCapacity,
DimensionMismatch,
}Expand description
Error conditions during MoE routing.
Variants§
InvalidTopK
BufferTooSmall
Provided output buffers are too small for requested top-k.
InsufficientExperts
Number of gate logits is smaller than requested top-k.
TopKExceedsCapacity
Requested top-k exceeds compile-time stack capacity MAX_MOE_TOPK.
DimensionMismatch
Dimension mismatch during tensor execution.
Trait Implementations§
impl Copy for MoeError
impl Eq for MoeError
§impl Error for MoeError
impl Error for MoeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for MoeError
Auto Trait Implementations§
impl Freeze for MoeError
impl RefUnwindSafe for MoeError
impl Send for MoeError
impl Sync for MoeError
impl Unpin for MoeError
impl UnsafeUnpin for MoeError
impl UnwindSafe for MoeError
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