pub enum ValidationErrorKind {
Show 14 variants
DanglingInput {
node_id: NodeId,
input_id: NodeId,
},
CycleDetected,
DuplicateName {
name: String,
},
InvalidInput {
node_id: NodeId,
},
InvalidOutput {
node_id: NodeId,
},
InvalidParamNode {
param_name: String,
node_id: NodeId,
},
ParamNotTensor {
param_name: String,
},
BinaryOpArity {
expected: usize,
got: usize,
},
UnaryOpArity {
expected: usize,
got: usize,
},
TypeMismatch {
left: IrType,
right: IrType,
},
TrainingGraphNotFound {
name: String,
},
InferenceGraphNotFound {
name: String,
},
NoOutputs,
InvalidDim {
dim: i64,
rank: usize,
},
}Expand description
Specific validation error kinds.
Variants§
DanglingInput
A node references a NodeId that doesn’t exist.
CycleDetected
The graph contains a cycle.
DuplicateName
Two nodes share the same name.
InvalidInput
An input listed in graph.inputs doesn’t exist.
InvalidOutput
An output listed in graph.outputs doesn’t exist.
InvalidParamNode
A parameter references a non-existent node.
ParamNotTensor
A parameter doesn’t have a Tensor type.
BinaryOpArity
Binary op has wrong number of inputs.
UnaryOpArity
Unary op has wrong number of inputs.
TypeMismatch
Type mismatch on binary op inputs.
TrainingGraphNotFound
Training config references a graph that doesn’t exist.
InferenceGraphNotFound
Inference config references a graph that doesn’t exist.
NoOutputs
Graph has no outputs.
InvalidDim
Reduction op with out-of-range dimension.
Trait Implementations§
Source§impl Clone for ValidationErrorKind
impl Clone for ValidationErrorKind
Source§fn clone(&self) -> ValidationErrorKind
fn clone(&self) -> ValidationErrorKind
Returns a duplicate of the value. Read more
1.0.0 · 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 ValidationErrorKind
impl Debug for ValidationErrorKind
Auto Trait Implementations§
impl Freeze for ValidationErrorKind
impl RefUnwindSafe for ValidationErrorKind
impl Send for ValidationErrorKind
impl Sync for ValidationErrorKind
impl Unpin for ValidationErrorKind
impl UnwindSafe for ValidationErrorKind
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> 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 more