pub enum RuntimeError {
Show 15 variants
Execution(ExecutionError),
Memory(MemoryError),
MissingEventScalar(String),
TypeMismatch {
index: usize,
expected: &'static str,
actual: &'static str,
},
InvalidShape {
index: usize,
message: String,
},
SingularMatrix(usize),
InvalidCache {
expected: usize,
actual: usize,
},
InvalidCacheLayout,
MissingEventColumn(String),
Data(String),
Parameter(String),
JitExecution(i32),
Reduction(ReductionError),
DistributedPeerFailure,
Wgpu(String),
}Expand description
Error produced while preparing or evaluating a model.
Variants§
Execution(ExecutionError)
Execution-context configuration failed.
Memory(MemoryError)
Memory discovery, planning, or reservation failed.
MissingEventScalar(String)
An expression requested an event scalar without an event lookup.
TypeMismatch
An expression node produced an unexpected value type.
Fields
InvalidShape
An expression node had an invalid shape.
SingularMatrix(usize)
A matrix factorization or solve failed.
InvalidCache
A cache contained the wrong number of slots.
InvalidCacheLayout
A cache was created for an incompatible layout.
MissingEventColumn(String)
A required event column was absent from the schema.
Data(String)
Dataset access failed.
Parameter(String)
Parameter validation or lookup failed.
JitExecution(i32)
A JIT-compiled kernel returned a failure status.
Reduction(ReductionError)
A reduction transform failed.
DistributedPeerFailure
Another distributed rank failed during evaluation.
Wgpu(String)
WebGPU preparation or execution failed.
Trait Implementations§
Source§impl Clone for RuntimeError
impl Clone for RuntimeError
Source§fn clone(&self) -> RuntimeError
fn clone(&self) -> RuntimeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
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<ExecutionError> for RuntimeError
impl From<ExecutionError> for RuntimeError
Source§fn from(source: ExecutionError) -> Self
fn from(source: ExecutionError) -> Self
Converts to this type from the input type.
Source§impl From<MemoryError> for RuntimeError
impl From<MemoryError> for RuntimeError
Source§fn from(source: MemoryError) -> Self
fn from(source: MemoryError) -> Self
Converts to this type from the input type.
Source§impl From<ReductionError> for RuntimeError
impl From<ReductionError> for RuntimeError
Source§fn from(source: ReductionError) -> Self
fn from(source: ReductionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RuntimeError
impl PartialEq for RuntimeError
impl StructuralPartialEq for RuntimeError
Auto Trait Implementations§
impl Freeze for RuntimeError
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnsafeUnpin for RuntimeError
impl UnwindSafe for RuntimeError
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.