pub enum TensorExecError {
CapabilityDenied {
capability: CapabilityName,
},
InvalidRequest {
message: Arc<str>,
},
Unsupported {
operation: Symbol,
reason: Arc<str>,
},
Shape {
message: Arc<str>,
},
Eval {
message: Arc<str>,
},
}Expand description
Error reported by tensor execution contracts.
Variants§
CapabilityDenied
A required capability was absent.
Fields
§
capability: CapabilityNameThe denied capability.
InvalidRequest
The request is not valid for the executor contract.
Unsupported
The executor does not support the requested operation.
Fields
Shape
A result did not match the requested tensor metadata.
Eval
Evaluation failed while realizing a tensor expression.
Trait Implementations§
Source§impl Clone for TensorExecError
impl Clone for TensorExecError
Source§fn clone(&self) -> TensorExecError
fn clone(&self) -> TensorExecError
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 TensorExecError
impl Debug for TensorExecError
Source§impl Display for TensorExecError
impl Display for TensorExecError
impl Eq for TensorExecError
Source§impl Error for TensorExecError
impl Error for TensorExecError
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<Error> for TensorExecError
impl From<Error> for TensorExecError
Source§impl From<TensorExecError> for Error
impl From<TensorExecError> for Error
Source§fn from(error: TensorExecError) -> Self
fn from(error: TensorExecError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TensorExecError
impl PartialEq for TensorExecError
impl StructuralPartialEq for TensorExecError
Auto Trait Implementations§
impl Freeze for TensorExecError
impl RefUnwindSafe for TensorExecError
impl Send for TensorExecError
impl Sync for TensorExecError
impl Unpin for TensorExecError
impl UnsafeUnpin for TensorExecError
impl UnwindSafe for TensorExecError
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