Enum web_rwkv::tensor::TensorError
source · pub enum TensorError {
Empty,
Type,
Size(usize, usize),
Shape(Shape, Shape),
Deduce,
BatchOutOfRange {
batch: usize,
max: usize,
},
SliceOutOfRange {
dim: usize,
start: usize,
end: usize,
},
Contiguous,
Pipeline(&'static str),
}Variants§
Empty
Type
Size(usize, usize)
Shape(Shape, Shape)
Deduce
BatchOutOfRange
SliceOutOfRange
Contiguous
Pipeline(&'static str)
Trait Implementations§
source§impl Clone for TensorError
impl Clone for TensorError
source§fn clone(&self) -> TensorError
fn clone(&self) -> TensorError
Returns a copy of the value. Read more
1.0.0 · 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 TensorError
impl Debug for TensorError
source§impl Display for TensorError
impl Display for TensorError
source§impl Error for TensorError
impl Error for TensorError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Hash for TensorError
impl Hash for TensorError
source§impl PartialEq for TensorError
impl PartialEq for TensorError
source§fn eq(&self, other: &TensorError) -> bool
fn eq(&self, other: &TensorError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for TensorError
impl Eq for TensorError
impl StructuralEq for TensorError
impl StructuralPartialEq for TensorError
Auto Trait Implementations§
impl RefUnwindSafe for TensorError
impl Send for TensorError
impl Sync for TensorError
impl Unpin for TensorError
impl UnwindSafe for TensorError
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more