pub enum TrainingError {
Show 15 variants
ReferenceCountError,
ThreadError(String),
SizeMismatchError(SizeMismatchError),
InvalidInputError(String),
EvaluateError(EvaluateError),
ToLargeInput(f64),
CudaError(CudaError),
CublasError(Error),
CudnnError(Error),
CudaRuntimeError(CudaRuntimeError),
InvalidStateError(InvalidStateError),
UnsupportedOperationError(UnsupportedOperationError),
TypeCastError(String),
TypeConvertError(TypeConvertError),
TryFromSliceError(TryFromSliceError),
}
Expand description
Errors made during neural network training
Variants§
ReferenceCountError
Tried to get two or more mutable references from Arc in multiple threads at the same time (this error is currently not used within crate)
ThreadError(String)
Errors occurring within the launched external thread (this error is currently not used within crate)
SizeMismatchError(SizeMismatchError)
Error generating fixed-length collections from collections of different sizes
InvalidInputError(String)
Illegal input value
EvaluateError(EvaluateError)
Error during forward propagation of neural network
ToLargeInput(f64)
The value is too large to convert. (this error is currently not used within crate)
CudaError(CudaError)
Error in cuda processing
CublasError(Error)
Error in cublas processing
CudnnError(Error)
Error in cudnn processing
CudaRuntimeError(CudaRuntimeError)
Error in cuda runtime
InvalidStateError(InvalidStateError)
Errors that occur when the internal state of a particular object or other object is abnormal.
UnsupportedOperationError(UnsupportedOperationError)
Error that occurs when calling a function that is not supported by the specification
TypeCastError(String)
Error raised when cast of primitive type fails
TypeConvertError(TypeConvertError)
Error generated when type conversion fails
TryFromSliceError(TryFromSliceError)
Error raised if cast to fixed-length array fails
Trait Implementations§
Source§impl Debug for TrainingError
impl Debug for TrainingError
Source§impl Display for TrainingError
impl Display for TrainingError
Source§impl Error for TrainingError
impl Error for TrainingError
Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Source§impl From<CudaError> for TrainingError
impl From<CudaError> for TrainingError
Source§fn from(err: CudaError) -> TrainingError
fn from(err: CudaError) -> TrainingError
Source§impl From<CudaRuntimeError> for TrainingError
impl From<CudaRuntimeError> for TrainingError
Source§fn from(err: CudaRuntimeError) -> TrainingError
fn from(err: CudaRuntimeError) -> TrainingError
Source§impl From<Error> for TrainingError
impl From<Error> for TrainingError
Source§fn from(err: Error) -> TrainingError
fn from(err: Error) -> TrainingError
Source§impl From<Error> for TrainingError
impl From<Error> for TrainingError
Source§fn from(err: Error) -> TrainingError
fn from(err: Error) -> TrainingError
Source§impl From<EvaluateError> for TrainingError
impl From<EvaluateError> for TrainingError
Source§fn from(err: EvaluateError) -> TrainingError
fn from(err: EvaluateError) -> TrainingError
Source§impl From<InvalidStateError> for TrainingError
impl From<InvalidStateError> for TrainingError
Source§fn from(err: InvalidStateError) -> TrainingError
fn from(err: InvalidStateError) -> TrainingError
Source§impl From<SizeMismatchError> for TrainingError
impl From<SizeMismatchError> for TrainingError
Source§fn from(err: SizeMismatchError) -> TrainingError
fn from(err: SizeMismatchError) -> TrainingError
Source§impl From<TryFromSliceError> for TrainingError
impl From<TryFromSliceError> for TrainingError
Source§fn from(err: TryFromSliceError) -> TrainingError
fn from(err: TryFromSliceError) -> TrainingError
Source§impl From<TypeConvertError> for TrainingError
impl From<TypeConvertError> for TrainingError
Source§fn from(err: TypeConvertError) -> TrainingError
fn from(err: TypeConvertError) -> TrainingError
Source§impl From<UnsupportedOperationError> for TrainingError
impl From<UnsupportedOperationError> for TrainingError
Source§fn from(err: UnsupportedOperationError) -> TrainingError
fn from(err: UnsupportedOperationError) -> TrainingError
Auto Trait Implementations§
impl Freeze for TrainingError
impl RefUnwindSafe for TrainingError
impl Send for TrainingError
impl Sync for TrainingError
impl Unpin for TrainingError
impl UnwindSafe for TrainingError
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
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>
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>
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