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

tff.backends.mapreduce.get_canonical_form_for_iterative_process

View source

Constructs tff.backends.mapreduce.CanonicalForm given iterative process.

tff.backends.mapreduce.get_canonical_form_for_iterative_process(iterative_process)

This function transforms computations from the input iterative_process into an instance of tff.backends.mapreduce.CanonicalForm.

Args:

Returns:

An instance of tff.backends.mapreduce.CanonicalForm equivalent to this process.

Raises:

  • TypeError: If the arguments are of the wrong types.
  • transformations.CanonicalFormCompilationError: If the compilation process fails.