#[non_exhaustive]pub enum CommunicationOperation {
AllReduceSum,
AllGatherEven,
AllGatherUneven,
VariableAllToAll,
SendReceive,
Broadcast,
Barrier,
FailureAgreement,
}Expand description
One exact mechanism required by a communication group or route.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AllReduceSum
Elementwise sum reduction over an ordered group.
AllGatherEven
Equal-size gather with concatenation in group-member order.
AllGatherUneven
Unequal-size gather with concatenation in group-member order.
VariableAllToAll
All-to-all with an exact count supplied for every ordered peer.
SendReceive
Directed point-to-point transfer.
Broadcast
Root-to-group broadcast.
Barrier
Group synchronization without a tensor payload.
FailureAgreement
All-rank boolean conjunction used to propagate a local phase failure.
Trait Implementations§
Source§impl Clone for CommunicationOperation
impl Clone for CommunicationOperation
Source§fn clone(&self) -> CommunicationOperation
fn clone(&self) -> CommunicationOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommunicationOperation
Source§impl Debug for CommunicationOperation
impl Debug for CommunicationOperation
Source§impl<'de> Deserialize<'de> for CommunicationOperation
impl<'de> Deserialize<'de> for CommunicationOperation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CommunicationOperation
Source§impl Hash for CommunicationOperation
impl Hash for CommunicationOperation
Source§impl Ord for CommunicationOperation
impl Ord for CommunicationOperation
Source§fn cmp(&self, other: &CommunicationOperation) -> Ordering
fn cmp(&self, other: &CommunicationOperation) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CommunicationOperation
impl PartialEq for CommunicationOperation
Source§impl PartialOrd for CommunicationOperation
impl PartialOrd for CommunicationOperation
Source§impl Serialize for CommunicationOperation
impl Serialize for CommunicationOperation
impl StructuralPartialEq for CommunicationOperation
Auto Trait Implementations§
impl Freeze for CommunicationOperation
impl RefUnwindSafe for CommunicationOperation
impl Send for CommunicationOperation
impl Sync for CommunicationOperation
impl Unpin for CommunicationOperation
impl UnsafeUnpin for CommunicationOperation
impl UnwindSafe for CommunicationOperation
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