pub enum ReduceOp {
Sum,
Product,
Min,
Max,
Average,
}Expand description
Reduction operation for collective communication.
Variants§
Sum
Sum all values.
Product
Compute product of all values.
Min
Find minimum value.
Max
Find maximum value.
Average
Compute average of all values.
Implementations§
Trait Implementations§
impl Copy for ReduceOp
impl Eq for ReduceOp
impl StructuralPartialEq for ReduceOp
Auto Trait Implementations§
impl Freeze for ReduceOp
impl RefUnwindSafe for ReduceOp
impl Send for ReduceOp
impl Sync for ReduceOp
impl Unpin for ReduceOp
impl UnwindSafe for ReduceOp
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more