|View source on GitHub|
AggregationFactory to report additional measurements.
tff.aggregators.AggregationFactory, *, client_measurement_fn: Optional[Callable[..., Dict[str, Any]]] = None, server_measurement_fn: Optional[Callable[..., Dict[str, Any]]] = None ) ->
client_measurement_fn should be a Python callable that will be
weight) depending on whether
inner_agg_factory is weighted or unweighted.
It must be traceable by TFF and expect
tff.Value objects placed at
as inputs, and return a
collections.OrderedDict mapping string names to
tensor values placed at
SERVER, which will be added to the measurement dict
produced by the
server_measurement_fn should be a Python callable that will be
result is the result (on
server) of the inner aggregation.
One or both of
server_measurement_fn must be
||The factory to wrap and add measurements.|
A Python callable that will be called on
A Python callable that will be called on the