A tff.program.FederatedDataSource
backed by client ids.
Inherits From: FederatedDataSource
tff.program.ClientIdDataSource(
client_ids: Sequence[str]
)
Args |
client_ids
|
A sequence of strings used to yield the client ids from this
data source. Must not be empty.
|
Raises |
ValueError
|
If client_ids is empty.
|
Attributes |
federated_type
|
The type of the data returned by calling select on an iterator.
|
Methods
iterator
View source
iterator() -> tff.program.FederatedDataSourceIterator
Returns a new iterator for retrieving client ids from this data source.