pub trait GradientAggregator {
// Required method
fn aggregate(
&self,
gradients: &[HashMap<String, Value>],
) -> Result<HashMap<String, Value>>;
}Expand description
Contract for gradient aggregation across workers.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".