pub enum TensorMetaError {
RankStrideMismatch {
rank: usize,
strides: usize,
},
StrideOverflow {
size: usize,
stride: usize,
},
StorageOffsetOverflow {
storage_offset: usize,
max_linear_offset: usize,
},
IndexRankMismatch {
expected: usize,
actual: usize,
},
IndexOutOfBounds {
dim: usize,
index: usize,
size: usize,
},
MissingQuantizationParams {
dtype: DType,
},
UnexpectedQuantizationParams {
dtype: DType,
},
InvalidQuantizationScale {
scale_bits: u64,
},
EmptyQuantizationChannels,
QuantizationVectorLengthMismatch {
scales: usize,
zero_points: usize,
},
InvalidQuantizationAxis {
axis: usize,
rank: usize,
},
QuantizationChannelCountMismatch {
axis: usize,
expected: usize,
actual: usize,
},
}Variants§
RankStrideMismatch
StrideOverflow
StorageOffsetOverflow
IndexRankMismatch
IndexOutOfBounds
MissingQuantizationParams
UnexpectedQuantizationParams
InvalidQuantizationScale
EmptyQuantizationChannels
QuantizationVectorLengthMismatch
InvalidQuantizationAxis
QuantizationChannelCountMismatch
Trait Implementations§
Source§impl Clone for TensorMetaError
impl Clone for TensorMetaError
Source§fn clone(&self) -> TensorMetaError
fn clone(&self) -> TensorMetaError
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 moreimpl Copy for TensorMetaError
Source§impl Debug for TensorMetaError
impl Debug for TensorMetaError
Source§impl Display for TensorMetaError
impl Display for TensorMetaError
impl Eq for TensorMetaError
Source§impl Error for TensorMetaError
impl Error for TensorMetaError
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<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 TensorMetaError
impl PartialEq for TensorMetaError
impl StructuralPartialEq for TensorMetaError
Auto Trait Implementations§
impl Freeze for TensorMetaError
impl RefUnwindSafe for TensorMetaError
impl Send for TensorMetaError
impl Sync for TensorMetaError
impl Unpin for TensorMetaError
impl UnsafeUnpin for TensorMetaError
impl UnwindSafe for TensorMetaError
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