TensorFlow 2.0 Beta is available Learn more

tff.framework.create_federated_zip

Creates a called federated zip.

tff.framework.create_federated_zip(value)

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

      Call
     /    \

Intrinsic Tuple | [Comp, Comp]

This function returns a federated tuple given a value with a tuple of federated values type signature.

Args:

  • value: A computation_building_blocks.ComputationBuildingBlock with a type_signature of type computation_types.NamedTupleType containing at least one element.

Returns:

A computation_building_blocks.Call.

Raises:

  • TypeError: If any of the types do not match.
  • ValueError: If value does not contain any elements.