federated icon indicating copy to clipboard operation
federated copied to clipboard

Keras Model from a TFF or Functional Model

Open teo-milea opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. I am training a Functional Model and would like to get a Keras model for inference with the Keras interface. Is there a way to get a Keras Model from a Functional Model? Currently tff.learning.models.model_from_functional(...) returns a tff model.

Describe the solution you'd like A function that could transform a TFF or a Functional Model into a Keras model.

Describe alternatives you've considered I have considered using the global weights from the state to assign to a Keras Model, but the functional model has a different structure than the Keras initial model. Maybe is there a way to modify the structure of a Keras Model that I was not aware of. I couldn't find anything on it.

teo-milea avatar Jul 20 '22 20:07 teo-milea

Hi , Can you help me with how to start with federated learning coding

Sanmaryjoseph avatar Feb 16 '23 05:02 Sanmaryjoseph