Module: tff.program

Libraries for creating federated programs.

Classes

class CSVFileReleaseManager: A tff.program.ReleaseManager that releases values to a CSV file.

class CSVSaveMode: An enumeration.

class Capability: Capability that can be supported by a data source.

class ClientIdDataSource: A tff.program.FederatedDataSource managing data in form of client ids.

class ClientIdDataSourceIterator: A tff.program.FederatedDataSourceIterator backed by client id strings.

class CoroValueReference: A tff.program.MaterializableValueReference backed by a coroutine.

class DatasetDataSource: A tff.program.FederatedDataSource backed by tf.data.Datasets.

class DatasetDataSourceIterator: A tff.program.FederatedDataSourceIterator backed by tf.data.Datasets.

class FederatedContext: An abstract interface representing a federated context.

class FederatedDataSource: An abstract interface for representing federated data sources.

class FederatedDataSourceIterator: An abstract interface for representing federated data source iterators.

class FileProgramStateManager: A tff.program.ProgramStateManager that is backed by a file system.

class FileReleaseManagerIncompatibleFileError: Common base class for all non-exit exceptions.

class FileReleaseManagerPermissionDeniedError: Common base class for all non-exit exceptions.

class FilteringReleaseManager: A tff.program.ReleaseManager that filters values before releasing them.

class GroupingReleaseManager: A tff.program.ReleaseManager that releases values to other release managers.

class LoggingReleaseManager: A tff.program.ReleaseManager that releases values to logs.

class MaterializableValueReference: An abstract interface representing references to server-placed values.

class MemoryReleaseManager: A tff.program.ReleaseManager that releases values to memory.

class NativeFederatedContext: A tff.program.FederatedContext backed by a tff.framework.Context.

class ProgramStateManager: An interface for saving and loading program state in a federated program.

class ProgramStateManagerStateAlreadyExistsError: Common base class for all non-exit exceptions.

class ProgramStateManagerStateNotFoundError: Common base class for all non-exit exceptions.

class ProgramStateManagerStructureError: Common base class for all non-exit exceptions.

class ReleaseManager: An interface for releasing values from a federated program.

class SavedModelFileReleaseManager: A tff.program.ReleaseManager that releases values to a file system.

class TensorBoardReleaseManager: A tff.program.ReleaseManager that releases values to TensorBoard.

Functions

check_in_federated_context(...): Checks if the current context is a tff.program.FederatedContext.

contains_only_server_placed_data(...): Determines if type_signature contains only server-placed data.

materialize_value(...): Returns a structure of materialized values.

Type Aliases

MaterializablePythonType

MaterializableTffType