Watch talks from the 2019 TensorFlow Dev Summit Watch now

tff.federated_apply

tff.federated_apply(
    func,
    arg
)

Defined in core/api/intrinsics.py.

Applies a given function to a federated value on the tff.SERVER.

Args:

  • func: A function to apply to the member content of arg on the tff.SERVER. The parameter of this function must be of the same type as the member constituent of arg.
  • arg: A value of a TFF federated type placed at the tff.SERVER, and with the all_equal bit set.

Returns:

A federated value on the tff.SERVER that represents the result of applying func to the member constituent of arg.

Raises:

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