TensorFlow 2.0 Beta is available Learn more

tff.framework.create_federated_map_all_equal

Creates a called federated map of equal values.

tff.framework.create_federated_map_all_equal(
    fn,
    arg
)

Defined in python/core/impl/computation_constructing_utils.py.

      Call
     /    \

Intrinsic Tuple | [Comp, Comp]

NOTE: The fn is required to be deterministic and therefore should contain no computation_building_blocks.CompiledComputations.

Args:

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

Returns:

A computation_building_blocks.Call.

Raises:

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