View source on GitHub |
Factory for creating tff.templates.AggregationProcess
with weights.
Methods
create
@abc.abstractmethod
create( value_type: ValueType, weight_type: ValueType ) ->
tff.templates.AggregationProcess
Creates a tff.aggregators.AggregationProcess
with weights.
The provided value_type
and weight_type
are non-federated tff.Type
s.
That is, neither is a tff.FederatedType
.
The returned tff.aggregators.AggregationProcess
will be created
for aggregation of pairs of values matching value_type
and weight_type
placed at tff.CLIENTS
. That is, its next
method will expect type
<S@SERVER, {value_type}@CLIENTS, {weight_type}@CLIENTS>
, where S
is the
unplaced return type of its initialize
method.
Args | |
---|---|
value_type
|
A non-federated tff.Type .
|
weight_type
|
A non-federated tff.Type .
|
Returns | |
---|---|
A tff.templates.AggregationProcess .
|