pub enum SilvicError {
Config(Arc<str>),
Data(Arc<str>),
Device(Arc<str>),
Collective(Arc<str>),
Model(Arc<str>),
Unsupported(Arc<str>),
Interrupted(Arc<str>),
Internal(Arc<str>),
}Expand description
Every failure silvic reports. Cheap to clone: a collective failure on one rank is surfaced on every call after it.
Variants§
Config(Arc<str>)
Data(Arc<str>)
Device(Arc<str>)
Collective(Arc<str>)
Model(Arc<str>)
Unsupported(Arc<str>)
Interrupted(Arc<str>)
The iteration callback asked to stop; carries the callback’s reason.
Internal(Arc<str>)
A training invariant failed (a bug, never bad input); training stops instead of panicking.
Implementations§
Source§impl SilvicError
impl SilvicError
pub fn config(msg: impl Into<Arc<str>>) -> Self
pub fn data(msg: impl Into<Arc<str>>) -> Self
pub fn internal(msg: impl Into<Arc<str>>) -> Self
pub fn device(msg: impl Into<Arc<str>>) -> Self
pub fn collective(msg: impl Into<Arc<str>>) -> Self
pub fn model(msg: impl Into<Arc<str>>) -> Self
pub fn unsupported(msg: impl Into<Arc<str>>) -> Self
Trait Implementations§
Source§impl Clone for SilvicError
impl Clone for SilvicError
Source§impl Debug for SilvicError
impl Debug for SilvicError
Source§impl Display for SilvicError
impl Display for SilvicError
impl Eq for SilvicError
Source§impl Error for SilvicError
impl Error for SilvicError
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 PartialEq for SilvicError
impl PartialEq for SilvicError
impl StructuralPartialEq for SilvicError
Auto Trait Implementations§
impl Forget for SilvicError
impl Freeze for SilvicError
impl Move for SilvicError
impl RefUnwindSafe for SilvicError
impl Send for SilvicError
impl Sync for SilvicError
impl Unpin for SilvicError
impl UnsafeUnpin for SilvicError
impl UnwindSafe for SilvicError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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