tff.learning.models.model_from_functional

Stay organized with collections Save and categorize content based on your preferences.

Converts a FunctionalModel to a tff.learning.Model.

functional_model A tff.learning.models.FunctionalModel to convert.
metric_constructors An optional sequence of callables that return newly constructed tf.keras.metrics.Metric objects to attached to the output tff.learning.Model.

A new tff.learning.Model with the same behavior as functional_model.