pub trait GradientAggregator {
// Required method
fn aggregate(
&self,
gradients: &[HashMap<String, Value>],
) -> Result<HashMap<String, Value>>;
}Expand description
Contract for gradient aggregation across workers.
pub trait GradientAggregator {
// Required method
fn aggregate(
&self,
gradients: &[HashMap<String, Value>],
) -> Result<HashMap<String, Value>>;
}Contract for gradient aggregation across workers.