pub enum TensorIrError {
ShapeMismatch {
expected: Shape,
got: Shape,
},
InvalidAxis {
axis: i32,
rank: usize,
},
DTypeMismatch {
expected: DType,
got: DType,
},
FusionFailed {
pattern: String,
},
}Expand description
Errors in Tensor IR operations.
Variants§
ShapeMismatch
Shape mismatch in operation.
InvalidAxis
Invalid axis for operation.
DTypeMismatch
Type mismatch.
FusionFailed
Fusion failed for guaranteed pattern.
Trait Implementations§
Source§impl Clone for TensorIrError
impl Clone for TensorIrError
Source§fn clone(&self) -> TensorIrError
fn clone(&self) -> TensorIrError
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 moreSource§impl Debug for TensorIrError
impl Debug for TensorIrError
Source§impl<'de> Deserialize<'de> for TensorIrError
impl<'de> Deserialize<'de> for TensorIrError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TensorIrError
impl Display for TensorIrError
Source§impl Error for TensorIrError
impl Error for TensorIrError
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()
Auto Trait Implementations§
impl Freeze for TensorIrError
impl RefUnwindSafe for TensorIrError
impl Send for TensorIrError
impl Sync for TensorIrError
impl Unpin for TensorIrError
impl UnsafeUnpin for TensorIrError
impl UnwindSafe for TensorIrError
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