pub enum InferShapesError {
IncorrectInputCount,
IncompatibleShapes,
IncorrectRank,
InvalidValue,
UnknownOutputCount,
}Expand description
Errors when performing shape inference.
Variants§
IncorrectInputCount
Too many or too few inputs were provided for this operator.
IncompatibleShapes
The input shapes are incompatible.
Operator execution will fail if given inputs with these shapes.
IncorrectRank
An input’s rank does not match that expected by the operator.
InvalidValue
An operator input or attribute has an invalid value.
UnknownOutputCount
The number of outputs could not be determined.
Trait Implementations§
Source§impl Clone for InferShapesError
impl Clone for InferShapesError
Source§fn clone(&self) -> InferShapesError
fn clone(&self) -> InferShapesError
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 InferShapesError
impl Debug for InferShapesError
Source§impl PartialEq for InferShapesError
impl PartialEq for InferShapesError
impl StructuralPartialEq for InferShapesError
Auto Trait Implementations§
impl Freeze for InferShapesError
impl RefUnwindSafe for InferShapesError
impl Send for InferShapesError
impl Sync for InferShapesError
impl Unpin for InferShapesError
impl UnwindSafe for InferShapesError
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