Skip to main content

submit_gradient

Function submit_gradient 

Source
pub fn submit_gradient(
    client_id: ClientId,
    gradient: &Array1<f64>,
    all_client_ids: &[ClientId],
    config: &SecureAggregationConfig,
) -> Result<MaskedGradient>
Expand description

End-to-end client helper: quantise gradient, add the pairwise mask, and package the result as a MaskedGradient ready for upload.