pub trait GradientAggregator: Send {
// Required method
fn aggregate(
&mut self,
local_gradients: &[Tensor],
) -> Result<Vec<Tensor>, ModelError>;
}Expand description
Strategy for combining gradients across distributed workers.