#[non_exhaustive]pub enum BuildError {
EmptyGraphName,
DynamicShape,
ShapeRankOverflow,
EmptyConstantData,
TensorDataWithoutConst,
ConstWithoutTensorData,
ShapeWithoutConstShape,
UnsupportedDType(DType),
Parse(Error),
Semantic(SemanticError),
}Expand description
Failure to construct a static graph accepted by the shared TOSA target.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyGraphName
DynamicShape
ShapeRankOverflow
EmptyConstantData
TensorDataWithoutConst
ConstWithoutTensorData
ShapeWithoutConstShape
UnsupportedDType(DType)
Parse(Error)
Semantic(SemanticError)
Trait Implementations§
Source§impl Debug for BuildError
impl Debug for BuildError
Auto Trait Implementations§
impl Freeze for BuildError
impl RefUnwindSafe for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl UnsafeUnpin for BuildError
impl UnwindSafe for BuildError
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