TensorFlow 2.0 Beta is available Learn more

tff.federated_map

Maps a federated value on tff.CLIENTS pointwise using a mapping function.

tff.federated_map(
    mapping_fn,
    value
)

Defined in python/core/api/intrinsics.py.

Args:

  • mapping_fn: A mapping function to apply pointwise to member constituents of value on each of the participants in tff.CLIENTS. The parameter of this function must be of the same type as the member constituents of value.
  • value: A value of a TFF federated type placed at the tff.CLIENTS, or a value that can be implicitly converted into a TFF federated type, e.g., by zipping.

Returns:

A federated value on tff.CLIENTS that represents the result of mapping.

Raises:

  • TypeError: If the arguments are not of the appropriate types.