tff.backends.mapreduce.get_canonical_form_for_iterative_process

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

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

ip An instance of tff.templates.IterativeProcess.

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

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