Missed TensorFlow World? Check out the recap. Learn more

tff.framework.create_federated_map_or_apply

View source on GitHub

Creates a called federated map or apply depending on args placement.

tff.framework.create_federated_map_or_apply(
    fn,
    arg
)
      Call
     /    \

Intrinsic Tuple | [Comp, Comp]

Args:

  • fn: A building_blocks.ComputationBuildingBlock to use as the function.
  • arg: A building_blocks.ComputationBuildingBlock to use as the argument.

Returns:

A building_blocks.Call.

Raises:

  • TypeError: If any of the types do not match.