Skip to main content

SumReductionBackend

Trait SumReductionBackend 

Source
pub trait SumReductionBackend: CommunicationBackend {
    // Required method
    fn all_reduce_sum(
        value: Self::Tensor,
        group: &Self::CommunicationGroup,
        executor: &Self::Executor,
    ) -> Result<Submission<Self::Tensor, Self::CommunicationCompletion>, Self::CommunicationError>;
}
Expand description

Sum reduction on an opaque communication group.

Required Methods§

Source

fn all_reduce_sum( value: Self::Tensor, group: &Self::CommunicationGroup, executor: &Self::Executor, ) -> Result<Submission<Self::Tensor, Self::CommunicationCompletion>, Self::CommunicationError>

Submits one elementwise sum and returns its exact completion.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§