federated/optimization/federated.py
def model_fn() -> tff.learning.Model:
        """
        Function that takes a keras model and creates an tensorflow federated learning model.
        """
        return tff.learning.from_keras_model(
            keras_model=get_keras_model(),
            input_spec=input_spec,
            loss=loss_fn(),
            metrics=metrics_fn(),
        )

        Function that takes a keras model and creates an tensorflow federated learning model.
        
Function that takes a keras model and creates an tensorflow federated learning model.
Function that takes a keras model and creates an tensorflow federated learning model .
def model_fn() -> tff.learning.Model:
        return tff.learning.from_keras_model(
            keras_model=get_keras_model(),
            input_spec=input_spec,
            loss=loss_fn(),
            metrics=metrics_fn(),
        )
def model_fn ( ) -> tff . learning . Model : return tff . learning . from_keras_model ( keras_model = get_keras_model ( ) , input_spec = input_spec , loss = loss_fn ( ) , metrics = metrics_fn ( ) , )
Function that takes a keras model and creates an tensorflow federated learning model.
Function that takes a keras model and creates an tensorflow federated learning model .
"""
        Function that takes a keras model and creates an tensorflow federated learning model.
        """