Skip to content
  • Jakub Konecny's avatar
    Splits `AggregationProcessFactory` to weighted and non-weighted variants. · edda7038
    Jakub Konecny authored
    New classes `WeightedAggregationFactory` and `NonWeightedAggregationFactory` replace the previous `AggregationProcessFactory` in the API
    
    This change makes explicit difference between ways to create `tff.templates.AggreagationProcess` objects with input type signatures of its `next` function `<state, value>` and `<state, value, weight>`.
    
    Also updates `ClippingFactory` and `ZeroingFactory` to implement both newly created classes.
    
    `MeanFactory` now only implements `WeightedAggregationFactory` class.
    
    PiperOrigin-RevId: 341988708
    edda7038