pub enum ValidationError {
UnknownOp {
node_name: String,
op_type: String,
domain: String,
},
DanglingInput {
node_name: String,
input_name: String,
},
DuplicateOutput {
value_name: String,
node_a: String,
node_b: String,
},
MissingTypeInfo {
input_name: String,
},
MalformedSlotMetadata {
node_name: String,
detail: String,
},
CyclicGraph {
involves: Vec<String>,
},
OpsetNotImported {
domain: String,
version_used: i64,
},
}Expand description
Errors from validate (pass 1). One variant per
docs/COMPILER.md §4.1 rule.
Variants§
UnknownOp
Rule 1 - unknown (op_type, domain) pair.
Fields
DanglingInput
Rule 2 - an input value name has no producer.
DuplicateOutput
Rule 3 - two ops claim to produce the same output value name.
Fields
MissingTypeInfo
Rule 5 - a function input has no matching ValueInfoProto.type.
MalformedSlotMetadata
Rule 6 - a role-domain NodeProto lacks the canonical metadata
keys (concrete_type + instance OR required_trait +
slot_id).
CyclicGraph
Rule 7 - the graph contains at least one cycle.
OpsetNotImported
Rule 8 - an op uses an opset that was not declared in
ModelProto.opset_import.
Trait Implementations§
Source§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
Source§impl Error for ValidationError
impl Error for ValidationError
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<ValidationError> for CompileError
impl From<ValidationError> for CompileError
Source§fn from(e: ValidationError) -> Self
fn from(e: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnsafeUnpin for ValidationError
impl UnwindSafe for ValidationError
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