Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tff.framework.create_federated_zip

View source

Creates a called federated zip.

tff.framework.create_federated_zip(value)
      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 building_blocks.ComputationBuildingBlock with a type_signature of type computation_types.NamedTupleType containing at least one element.

Returns:

A building_blocks.Call.

Raises:

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