tff.program.DatasetDataSource

A tff.program.FederatedDataSource backed by tf.data.Datasets.

Inherits From: FederatedDataSource

A tff.program.FederatedDataSource backed by a sequence of tf.data.Dataset's, onetf.data.Dataset' per client, and selects data uniformly random with replacement.

datasets A sequence of `tf.data.Dataset's to use to yield the data from this data source.

ValueError If datasets is empty or if each tf.data.Dataset in datasets does not have the same type specification.

capabilities The list of capabilities supported by this data source.
federated_type The type of the data returned by calling select on an iterator.

Methods

iterator

View source

Returns a new iterator for retrieving data from this data source.