pub enum ReduceError {
PlanesUnavailable,
CubeCountTooLarge,
Validation {
details: &'static str,
},
ImprecisePlaneDim,
InvalidAxis {
axis: usize,
rank: usize,
},
MismatchShape {
expected_shape: Vec<usize>,
output_shape: Vec<usize>,
},
MissingAtomicAdd(StorageType),
Launch(LaunchError),
}Expand description
This error should be caught and properly handled.
Variants§
Indicate that the hardware / API doesn’t support SIMT plane instructions.
CubeCountTooLarge
When the cube count is bigger than the max supported.
Validation
A generic validation error
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(StorageType)
Indicate that we can’t launch a shared sum because the atomic addition is not supported.
Launch(LaunchError)
An error happened during launch.
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 Error for ReduceError
impl Error for ReduceError
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()
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