pub enum AggregationError {
DimensionMismatch {
expected: usize,
actual: usize,
},
EmptyGradients,
InvalidWeight(f64),
WeightNormalization(f64),
InsufficientGradients {
required: usize,
actual: usize,
},
NumericOverflow,
}Expand description
Errors during gradient aggregation
Variants§
DimensionMismatch
Dimension mismatch between gradients
EmptyGradients
Empty gradient set
InvalidWeight(f64)
Invalid weight
WeightNormalization(f64)
Weights do not sum to 1.0
InsufficientGradients
Insufficient gradients for robust aggregation
NumericOverflow
Numeric overflow during aggregation
Trait Implementations§
Source§impl Clone for AggregationError
impl Clone for AggregationError
Source§fn clone(&self) -> AggregationError
fn clone(&self) -> AggregationError
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 AggregationError
impl Debug for AggregationError
Source§impl Display for AggregationError
impl Display for AggregationError
Source§impl Error for AggregationError
impl Error for AggregationError
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()
Source§impl From<AggregationError> for QflgError
impl From<AggregationError> for QflgError
Source§fn from(source: AggregationError) -> Self
fn from(source: AggregationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AggregationError
impl RefUnwindSafe for AggregationError
impl Send for AggregationError
impl Sync for AggregationError
impl Unpin for AggregationError
impl UnwindSafe for AggregationError
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