pub enum OpComplexity {
Low,
Medium,
High,
}Expand description
Operation complexity for MoE (Mixture-of-Experts) routing
Variants§
Low
Simple operations (add, mul) - O(n), prefer SIMD unless very large
Medium
Moderate operations (dot, reduce) - O(n), GPU beneficial at 100K+ elements
High
Complex operations (matmul, convolution) - O(n²) or O(n³), GPU beneficial at 10K+ elements
Trait Implementations§
Source§impl Clone for OpComplexity
impl Clone for OpComplexity
Source§fn clone(&self) -> OpComplexity
fn clone(&self) -> OpComplexity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpComplexity
impl Debug for OpComplexity
Source§impl Default for OpComplexity
impl Default for OpComplexity
Source§impl<'de> Deserialize<'de> for OpComplexity
impl<'de> Deserialize<'de> for OpComplexity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for OpComplexity
impl Ord for OpComplexity
Source§fn cmp(&self, other: &OpComplexity) -> Ordering
fn cmp(&self, other: &OpComplexity) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OpComplexity
impl PartialEq for OpComplexity
Source§impl PartialOrd for OpComplexity
impl PartialOrd for OpComplexity
Source§impl Serialize for OpComplexity
impl Serialize for OpComplexity
impl Copy for OpComplexity
impl Eq for OpComplexity
impl StructuralPartialEq for OpComplexity
Auto Trait Implementations§
impl Freeze for OpComplexity
impl RefUnwindSafe for OpComplexity
impl Send for OpComplexity
impl Sync for OpComplexity
impl Unpin for OpComplexity
impl UnsafeUnpin for OpComplexity
impl UnwindSafe for OpComplexity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more