Missed TensorFlow World? Check out the recap. Learn more

tff.framework.create_federated_zip

View source on GitHub

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.