pub enum DenseTensorError {
Meta(TensorMetaError),
UnsupportedDType(DType),
UnsupportedLayout,
UnsupportedStorageAccess {
dtype: DType,
},
StorageSpanOverflow {
storage_offset: usize,
numel: usize,
},
InsufficientStorage {
needed: usize,
actual: usize,
},
ShapeOverflow {
shape: Vec<usize>,
},
}Variants§
Meta(TensorMetaError)
UnsupportedDType(DType)
UnsupportedLayout
UnsupportedStorageAccess
StorageSpanOverflow
InsufficientStorage
ShapeOverflow
Trait Implementations§
Source§impl Clone for DenseTensorError
impl Clone for DenseTensorError
Source§fn clone(&self) -> DenseTensorError
fn clone(&self) -> DenseTensorError
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 DenseTensorError
impl Debug for DenseTensorError
Source§impl Display for DenseTensorError
impl Display for DenseTensorError
impl Eq for DenseTensorError
Source§impl Error for DenseTensorError
impl Error for DenseTensorError
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<DenseTensorError> for SparseTensorError
impl From<DenseTensorError> for SparseTensorError
Source§fn from(value: DenseTensorError) -> Self
fn from(value: DenseTensorError) -> Self
Converts to this type from the input type.
Source§impl From<TensorMetaError> for DenseTensorError
impl From<TensorMetaError> for DenseTensorError
Source§fn from(value: TensorMetaError) -> Self
fn from(value: TensorMetaError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DenseTensorError
impl PartialEq for DenseTensorError
impl StructuralPartialEq for DenseTensorError
Auto Trait Implementations§
impl Freeze for DenseTensorError
impl RefUnwindSafe for DenseTensorError
impl Send for DenseTensorError
impl Sync for DenseTensorError
impl Unpin for DenseTensorError
impl UnsafeUnpin for DenseTensorError
impl UnwindSafe for DenseTensorError
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