pub enum TrainError {
LossError(String),
OptimizerError(String),
BatchError(String),
CallbackError(String),
MetricsError(String),
CheckpointError(String),
InvalidParameter(String),
ModelError(String),
ConfigError(String),
ExecutorError(ExecutorError),
Other(String),
}Expand description
Errors that can occur during training.
Variants§
LossError(String)
Error in loss computation.
OptimizerError(String)
Error in optimizer operation.
BatchError(String)
Error in batch processing.
CallbackError(String)
Error in callback execution.
MetricsError(String)
Error in metrics computation.
CheckpointError(String)
Error in checkpoint save/load.
InvalidParameter(String)
Error with invalid parameter.
ModelError(String)
Error in model operations.
ConfigError(String)
Error in configuration.
ExecutorError(ExecutorError)
Error from tensorlogic-infer.
Other(String)
Generic error.
Trait Implementations§
Source§impl Debug for TrainError
impl Debug for TrainError
Source§impl Display for TrainError
impl Display for TrainError
Source§impl Error for TrainError
impl Error for TrainError
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<ExecutorError> for TrainError
impl From<ExecutorError> for TrainError
Source§fn from(source: ExecutorError) -> Self
fn from(source: ExecutorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TrainError
impl RefUnwindSafe for TrainError
impl Send for TrainError
impl Sync for TrainError
impl Unpin for TrainError
impl UnwindSafe for TrainError
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> 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