tff.learning.ClientFedAvg

View source on GitHub

Client TensorFlow logic for Federated Averaging.

Inherits From: ClientDeltaFn

model A tff.learning.Model instance.
optimizer A tf.keras.Optimizer instance.
client_weight_fn an optional callable that takes the output of model.report_local_outputs and returns a tensor that provides the weight in the federated average of model deltas. If not provided, the default is the total number of examples processed on device.

variables Returns all the variables of this object.

Note this only includes variables that are part of the state of this object, and not the model variables themselves.

Methods

__call__

View source