pub enum SapientError {
Show 25 variants
ShapeMismatch {
expected: Vec<usize>,
got: Vec<usize>,
},
RankMismatch {
expected: usize,
got: usize,
},
TypeMismatch {
expected: String,
got: String,
},
BroadcastError {
lhs: Vec<usize>,
rhs: Vec<usize>,
},
CyclicGraph,
NodeNotFound(String),
InvalidGraph(String),
ShapeInferenceFailed {
op: String,
reason: String,
},
UnsupportedOp {
backend: String,
op: String,
},
BackendError {
backend: String,
message: String,
},
NoBackendAvailable,
AllocationFailed {
bytes: usize,
align: usize,
},
BufferSizeMismatch {
expected: usize,
got: usize,
},
PoolExhausted,
OnnxParseError(String),
GgufParseError(String),
SafetensorsParseError(String),
UnsupportedFormat(String),
ModelNotFound(String),
Io(Error),
DeadlineExceeded,
SchedulerShutdown,
UninitializedRuntime,
TelemetryError(String),
Internal(String),
}Expand description
The central error enum for all SAPIENT operations.
Variants§
ShapeMismatch
RankMismatch
TypeMismatch
BroadcastError
CyclicGraph
NodeNotFound(String)
InvalidGraph(String)
ShapeInferenceFailed
UnsupportedOp
BackendError
NoBackendAvailable
AllocationFailed
BufferSizeMismatch
PoolExhausted
OnnxParseError(String)
GgufParseError(String)
SafetensorsParseError(String)
UnsupportedFormat(String)
ModelNotFound(String)
Io(Error)
DeadlineExceeded
SchedulerShutdown
UninitializedRuntime
TelemetryError(String)
Internal(String)
Implementations§
Trait Implementations§
Source§impl Debug for SapientError
impl Debug for SapientError
Source§impl Display for SapientError
impl Display for SapientError
Source§impl Error for SapientError
impl Error for SapientError
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()
Auto Trait Implementations§
impl Freeze for SapientError
impl !RefUnwindSafe for SapientError
impl Send for SapientError
impl Sync for SapientError
impl Unpin for SapientError
impl UnsafeUnpin for SapientError
impl !UnwindSafe for SapientError
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