tff.learning.from_compiled_keras_model( keras_model, dummy_batch )
tff.learning.Model for an
example mini batch.
tf.keras.Modelobject that was compiled.
dummy_batch: A nested structure of values that are convertible to batched tensors with the same shapes and types as expected by
forward_pass(). The values of the tensors are not important and can be filled with any reasonable input value.
keras_modelis not an instance of
keras_modelwas not compiled.