pub enum ReduceError {
PlanesUnavailable,
CubeCountTooLarge,
ImprecisePlaneDim,
InvalidAxis {
axis: usize,
rank: usize,
},
MismatchShape {
expected_shape: Vec<usize>,
output_shape: Vec<usize>,
},
}
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.
Trait Implementations§
Source§impl Clone for ReduceError
impl Clone for ReduceError
Source§fn clone(&self) -> ReduceError
fn clone(&self) -> ReduceError
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 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()
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