pub enum SemanticErrorKind {
Show 22 variants
GraphIoMustBeTensor,
InvalidArity {
op: Op,
inputs: usize,
outputs: usize,
},
TensorListLimit {
op: Op,
actual: usize,
limit: usize,
},
ExpectedTensor {
op: Op,
role: OperandRole,
index: usize,
},
ExpectedShape {
op: Op,
role: OperandRole,
index: usize,
},
InvalidRank {
op: Op,
role: OperandRole,
index: usize,
rank: Option<usize>,
minimum: usize,
maximum: usize,
},
UnsupportedTypeProfile(Op),
InvalidAttribute(Op),
InvalidShape(Op),
ConstantRequired {
op: Op,
input: usize,
},
InvalidConstantData {
op: Op,
operand: usize,
},
InvalidTensorData,
TensorSizeLimit,
ShapeValueLimit,
InvalidVariable,
DisconnectedSymbol,
GraphInputProduced,
DataflowCycle,
UnknownControlFlowRegion(Op),
ControlFlowSignature(Op),
ControlFlowCycle,
ControlFlowNestingLimit {
actual: usize,
limit: usize,
},
}Expand description
Operator-level failure after the serialization envelope has already been validated.
Variants§
GraphIoMustBeTensor
InvalidArity
TensorListLimit
ExpectedTensor
ExpectedShape
InvalidRank
UnsupportedTypeProfile(Op)
InvalidAttribute(Op)
InvalidShape(Op)
ConstantRequired
InvalidConstantData
InvalidTensorData
TensorSizeLimit
ShapeValueLimit
InvalidVariable
DisconnectedSymbol
GraphInputProduced
DataflowCycle
UnknownControlFlowRegion(Op)
ControlFlowSignature(Op)
ControlFlowCycle
ControlFlowNestingLimit
Trait Implementations§
Source§impl Clone for SemanticErrorKind
impl Clone for SemanticErrorKind
Source§fn clone(&self) -> SemanticErrorKind
fn clone(&self) -> SemanticErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SemanticErrorKind
Source§impl Debug for SemanticErrorKind
impl Debug for SemanticErrorKind
impl Eq for SemanticErrorKind
Source§impl PartialEq for SemanticErrorKind
impl PartialEq for SemanticErrorKind
Source§fn eq(&self, other: &SemanticErrorKind) -> bool
fn eq(&self, other: &SemanticErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SemanticErrorKind
Auto Trait Implementations§
impl Freeze for SemanticErrorKind
impl RefUnwindSafe for SemanticErrorKind
impl Send for SemanticErrorKind
impl Sync for SemanticErrorKind
impl Unpin for SemanticErrorKind
impl UnsafeUnpin for SemanticErrorKind
impl UnwindSafe for SemanticErrorKind
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