pub enum GraphError {
NodeNotFound(NodeId),
CycleDetected {
from: NodeId,
to: NodeId,
},
EmptyGraph,
BufferSizeMismatch {
node: NodeId,
expected: usize,
got: usize,
},
FusionNotPossible {
a: NodeId,
b: NodeId,
reason: &'static str,
},
MemoryPlanningFailed(String),
StreamPartitioningFailed(String),
InvalidPlan(String),
PtxCodegenFailed {
group: usize,
reason: String,
},
Internal(String),
}Expand description
Errors that can occur during graph construction, analysis, or execution.
Variants§
NodeNotFound(NodeId)
A node referenced by ID does not exist in the graph.
CycleDetected
An edge would create a cycle in the computation DAG.
EmptyGraph
Graph has no nodes.
BufferSizeMismatch
Two nodes that should be compatible have incompatible buffer shapes.
FusionNotPossible
Fusion of two nodes was requested but they are not fusible.
MemoryPlanningFailed(String)
A memory planning constraint could not be satisfied.
StreamPartitioningFailed(String)
Stream assignment produced an invalid schedule.
InvalidPlan(String)
Execution plan validation error.
PtxCodegenFailed
PTX code generation for a fused kernel failed.
Internal(String)
General internal error (should not occur in correct usage).
Trait Implementations§
Source§impl Debug for GraphError
impl Debug for GraphError
Source§impl Display for GraphError
impl Display for GraphError
Source§impl Error for GraphError
impl Error for GraphError
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()
Auto Trait Implementations§
impl Freeze for GraphError
impl RefUnwindSafe for GraphError
impl Send for GraphError
impl Sync for GraphError
impl Unpin for GraphError
impl UnsafeUnpin for GraphError
impl UnwindSafe for GraphError
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