pub enum ReduceError {
PlanesUnavailable,
CubeCountTooLarge,
ImprecisePlaneDim,
InvalidAxis {
axis: usize,
rank: usize,
},
MismatchShape {
expected_shape: Vec<usize>,
output_shape: Vec<usize>,
},
MissingAtomicAdd(Elem),
}
Variants§
Indicate that the hardware / API doesn’t support SIMT plane instructions.
CubeCountTooLarge
When the cube count is bigger than the max supported.
ImprecisePlaneDim
Indicate that min_plane_dim != max_plane_dim, thus the exact plane_dim is not fixed.
InvalidAxis
Indicate the axis is too large.
MismatchShape
Indicate that the shape of the output tensor is invalid for the given input and axis.
MissingAtomicAdd(Elem)
Indicate that we can’t launch a shared sum because the atomic addition is not supported.
Trait Implementations§
Source§impl Clone for ReduceError
impl Clone for ReduceError
Source§fn clone(&self) -> ReduceError
fn clone(&self) -> ReduceError
Returns a duplicate 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 ReduceError
impl Debug for ReduceError
Source§impl Display for ReduceError
impl Display for ReduceError
Source§impl Hash for ReduceError
impl Hash for ReduceError
Source§impl PartialEq for ReduceError
impl PartialEq for ReduceError
impl Eq for ReduceError
impl StructuralPartialEq for ReduceError
Auto Trait Implementations§
impl Freeze for ReduceError
impl RefUnwindSafe for ReduceError
impl Send for ReduceError
impl Sync for ReduceError
impl Unpin for ReduceError
impl UnwindSafe for ReduceError
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.