pub enum MuonError {
Show 14 variants
InvalidConfig(&'static str),
ExpectedMatrix {
rank: usize,
},
EmptyMatrix,
ShapeMismatch(&'static str),
DTypeMismatch(&'static str),
DeviceMismatch(&'static str),
EmptyMuonGroup,
DuplicateParameter(u64),
UnknownParameter(u64),
FrozenParameter(u64),
ModelChanged,
UnusedGradients,
IncompatibleRecord,
UnsupportedDistributed,
}Expand description
Configuration, metadata or explicit parameter-group error for Muon. Device execution faults remain backend errors; no host fallback is attempted.
Variants§
InvalidConfig(&'static str)
Invalid hyperparameter or unsupported numerical mode.
ExpectedMatrix
Muon operates on a complete matrix, not an arbitrary-rank tensor.
EmptyMatrix
A matrix dimension is zero.
ShapeMismatch(&'static str)
Gradient or restored momentum has incompatible geometry.
DTypeMismatch(&'static str)
Gradient or restored momentum has a different element format.
DeviceMismatch(&'static str)
Gradient or restored momentum is on a different device.
EmptyMuonGroup
The Muon group was left empty.
DuplicateParameter(u64)
A selected id was supplied twice.
UnknownParameter(u64)
A selected id is absent from the module.
FrozenParameter(u64)
A selected Muon parameter is frozen.
ModelChanged
A module’s ids/shapes changed, or tied aliases disagree.
UnusedGradients
A gradient refers to an unknown or frozen parameter.
IncompatibleRecord
A record belongs to another grouping, geometry, configuration or schema.
UnsupportedDistributed
This API is deliberately limited to full, synchronized local matrices.
Trait Implementations§
impl Eq for MuonError
Source§impl Error for MuonError
impl Error for MuonError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for MuonError
Auto Trait Implementations§
impl Freeze for MuonError
impl RefUnwindSafe for MuonError
impl Send for MuonError
impl Sync for MuonError
impl Unpin for MuonError
impl UnsafeUnpin for MuonError
impl UnwindSafe for MuonError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.