Skip to main content

Module aggregators

Module aggregators 

Source
Expand description

Concrete Aggregator Contract implementations the framework ships out of the box. Each impl bridges the user-facing bb_runtime::contracts::Aggregator trait to the engine’s dispatch_atomic path through the bb_derive::Aggregator macro and self-registers via inventory::submit!.

Re-exports§

pub use fedavg::FedAvg;
pub use fedavg::FedAvgMeta;

Modules§

fedavg
FedAvg<B> — federated-averaging aggregator. Composes the reduction from the bound backend’s Mul + Add primitives so the 30-op floor stays unchanged. Aggregate emits the cumulative num_samples for hierarchical weighting.