tff.learning.models.model_from_functional

Converts a FunctionalModel to a tff.learning.models.VariableModel.

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.models.VariableModel.

A new tff.learning.models.VariableModel with the same behavior as functional_model.