Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

Module: tff.learning.framework

View source

The public API for contributors who develop federated learning algorithms.

Classes

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: A wrapper around a Model that adds sanity checking and metadata helpers.

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

Functions

build_encoded_broadcast_from_model(...): Builds StatefulBroadcastFn for weights of model returned by model_fn.

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