pub enum EvaluateError {
CudaError(CudaError),
CublasError(Error),
CudnnError(Error),
CudaRuntimeError(CudaRuntimeError),
SizeMismatchError(SizeMismatchError),
InvalidStateError(InvalidStateError),
TypeCastError(String),
TypeConvertError(TypeConvertError),
TryFromSliceError(TryFromSliceError),
}
Expand description
Error during forward propagation of neural network
Variants§
CudaError(CudaError)
Error in cuda processing
CublasError(Error)
Error in cublas processing
CudnnError(Error)
Error in cudnn processing
CudaRuntimeError(CudaRuntimeError)
Error in cuda runtime
SizeMismatchError(SizeMismatchError)
Error generating fixed-length collections from collections of different sizes
InvalidStateError(InvalidStateError)
Errors that occur when the internal state of a particular object or other object is abnormal.
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 EvaluateError
impl Debug for EvaluateError
Source§impl Display for EvaluateError
impl Display for EvaluateError
Source§impl Error for EvaluateError
impl Error for EvaluateError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl From<CudaError> for EvaluateError
impl From<CudaError> for EvaluateError
Source§fn from(err: CudaError) -> EvaluateError
fn from(err: CudaError) -> EvaluateError
Converts to this type from the input type.
Source§impl From<CudaRuntimeError> for EvaluateError
impl From<CudaRuntimeError> for EvaluateError
Source§fn from(err: CudaRuntimeError) -> EvaluateError
fn from(err: CudaRuntimeError) -> EvaluateError
Converts to this type from the input type.
Source§impl From<Error> for EvaluateError
impl From<Error> for EvaluateError
Source§fn from(err: Error) -> EvaluateError
fn from(err: Error) -> EvaluateError
Converts to this type from the input type.
Source§impl From<Error> for EvaluateError
impl From<Error> for EvaluateError
Source§fn from(err: Error) -> EvaluateError
fn from(err: Error) -> EvaluateError
Converts to this type from the input type.
Source§impl From<EvaluateError> for TrainingError
impl From<EvaluateError> for TrainingError
Source§fn from(err: EvaluateError) -> TrainingError
fn from(err: EvaluateError) -> TrainingError
Converts to this type from the input type.
Source§impl From<InvalidStateError> for EvaluateError
impl From<InvalidStateError> for EvaluateError
Source§fn from(err: InvalidStateError) -> EvaluateError
fn from(err: InvalidStateError) -> EvaluateError
Converts to this type from the input type.
Source§impl From<SizeMismatchError> for EvaluateError
impl From<SizeMismatchError> for EvaluateError
Source§fn from(err: SizeMismatchError) -> EvaluateError
fn from(err: SizeMismatchError) -> EvaluateError
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for EvaluateError
impl From<TryFromSliceError> for EvaluateError
Source§fn from(err: TryFromSliceError) -> EvaluateError
fn from(err: TryFromSliceError) -> EvaluateError
Converts to this type from the input type.
Source§impl From<TypeConvertError> for EvaluateError
impl From<TypeConvertError> for EvaluateError
Source§fn from(err: TypeConvertError) -> EvaluateError
fn from(err: TypeConvertError) -> EvaluateError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EvaluateError
impl RefUnwindSafe for EvaluateError
impl Send for EvaluateError
impl Sync for EvaluateError
impl Unpin for EvaluateError
impl UnwindSafe for EvaluateError
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