Module: tff.learning.framework

Defined in learning/framework/

The public API for contributors who develop federated learning algorithms.


class ClientDeltaFn: Represents a client computation that produces an update to a model.

class ClientOutput: Structure for outputs returned from clients during federated optimization.

class EnhancedModel: A wrapper around a Model that adds sanity checking and metadata helpers.

class EnhancedTrainableModel

class ModelWeights: A container for the trainable and non-trainable variables of a Model.


build_model_delta_optimizer_process(...): Constructs tff.utils.IterativeProcess for Federated Averaging or SGD.