pub enum BackendError {
MissingInput {
name: String,
op_type: String,
},
OutputNotTensor {
op_type: String,
},
KernelFailed {
op_type: String,
source: OpError,
},
DefaultWalker(BackendWalkError),
}Expand description
Failures execute_graph may surface alongside the kernel-level
OpErrors already routed through the existing dispatch.
Variants§
MissingInput
A node input name isn’t in the value env. The graph either uses a value the caller didn’t bind OR an upstream node failed to populate one of its declared outputs.
Fields
OutputNotTensor
A node output value isn’t a CpuTensor. The CpuBackend’s
graph walker only handles f32 tensors; any other SlotValue
kind from a custom kernel rejects.
KernelFailed
The kernel itself returned an OpError. Wraps the error so
callers see which op surfaced it.
DefaultWalker(BackendWalkError)
Bridged failure from the framework’s default Backend
walker (malformed graph fed to Backend::execute).
Trait Implementations§
Source§impl Debug for BackendError
impl Debug for BackendError
Source§impl Display for BackendError
impl Display for BackendError
Source§impl Error for BackendError
impl Error for BackendError
1.30.0 · 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<BackendWalkError> for BackendError
impl From<BackendWalkError> for BackendError
Source§fn from(value: BackendWalkError) -> Self
fn from(value: BackendWalkError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BackendError
impl RefUnwindSafe for BackendError
impl Send for BackendError
impl Sync for BackendError
impl Unpin for BackendError
impl UnsafeUnpin for BackendError
impl UnwindSafe for BackendError
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