pub enum OperationError<T: Debug> {
TensorOptimisedOut,
InvalidTensorFormat,
IndexOutOfBounds,
UnsupportedOperation,
MismatchedBatchSizes,
NoWeightWithID(String),
WeightLoadingError(String, Option<(usize, usize)>),
DeviceError(Box<T>),
}Variants§
TensorOptimisedOut
InvalidTensorFormat
IndexOutOfBounds
UnsupportedOperation
MismatchedBatchSizes
NoWeightWithID(String)
WeightLoadingError(String, Option<(usize, usize)>)
DeviceError(Box<T>)
Trait Implementations§
Source§impl<T: Debug> From<OperationError<T>> for GraphError<T>
impl<T: Debug> From<OperationError<T>> for GraphError<T>
Source§fn from(value: OperationError<T>) -> Self
fn from(value: OperationError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for OperationError<T>
impl<T> RefUnwindSafe for OperationError<T>where
Box<T>: RefUnwindSafe,
impl<T> Send for OperationError<T>
impl<T> Sync for OperationError<T>
impl<T> Unpin for OperationError<T>
impl<T> UnsafeUnpin for OperationError<T>where
Box<T>: UnsafeUnpin,
impl<T> UnwindSafe for OperationError<T>where
Box<T>: UnwindSafe,
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