pub struct CommunicationOperationRequirement { /* private fields */ }Expand description
Fine-grained operation, dtype, limit, and completion requirement.
Implementations§
Source§impl CommunicationOperationRequirement
impl CommunicationOperationRequirement
Sourcepub fn tensors(
operation: CommunicationOperation,
dtypes: impl IntoIterator<Item = TensorDtype>,
limits: CommunicationTensorLimits,
exact_completion: bool,
) -> Result<Self, CommunicationManifestError>
pub fn tensors( operation: CommunicationOperation, dtypes: impl IntoIterator<Item = TensorDtype>, limits: CommunicationTensorLimits, exact_completion: bool, ) -> Result<Self, CommunicationManifestError>
Validates one tensor-carrying operation requirement.
Sourcepub const fn barrier(exact_completion: bool) -> Self
pub const fn barrier(exact_completion: bool) -> Self
Creates a payload-free barrier requirement.
Sourcepub const fn failure_agreement(exact_completion: bool) -> Self
pub const fn failure_agreement(exact_completion: bool) -> Self
Creates a payload-free all-rank failure-agreement requirement.
Sourcepub const fn operation(&self) -> CommunicationOperation
pub const fn operation(&self) -> CommunicationOperation
Required operation semantics.
Sourcepub fn dtypes(&self) -> &[TensorDtype]
pub fn dtypes(&self) -> &[TensorDtype]
Exact admitted logical tensor element types.
Sourcepub const fn limits(&self) -> Option<CommunicationTensorLimits>
pub const fn limits(&self) -> Option<CommunicationTensorLimits>
Payload limits, absent for payload-free synchronization operations.
Sourcepub const fn exact_completion(&self) -> bool
pub const fn exact_completion(&self) -> bool
Whether the operation requires an exact completion object.
Trait Implementations§
Source§impl Clone for CommunicationOperationRequirement
impl Clone for CommunicationOperationRequirement
Source§fn clone(&self) -> CommunicationOperationRequirement
fn clone(&self) -> CommunicationOperationRequirement
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 moreSource§impl<'de> Deserialize<'de> for CommunicationOperationRequirement
impl<'de> Deserialize<'de> for CommunicationOperationRequirement
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 CommunicationOperationRequirement
impl StructuralPartialEq for CommunicationOperationRequirement
Auto Trait Implementations§
impl Freeze for CommunicationOperationRequirement
impl RefUnwindSafe for CommunicationOperationRequirement
impl Send for CommunicationOperationRequirement
impl Sync for CommunicationOperationRequirement
impl Unpin for CommunicationOperationRequirement
impl UnsafeUnpin for CommunicationOperationRequirement
impl UnwindSafe for CommunicationOperationRequirement
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