adap / flower

Flower: A Friendly Federated AI Framework
https://flower.ai
Apache License 2.0
5.13k stars 881 forks source link

refactor(framework:skip) Move `ClientApp` warning when `client_fn` is not passed #4132

Open jafermarq opened 2 months ago

jafermarq commented 2 months ago

When using the low-level APIs for ClientApp, a warning is thrown each time the @app.train, @app.evaluate, @app.query methods are called. This PR moves the warning to the ClientApp constructor so those that want to use the low-level ClientApp features are warned only once.