Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljanes authored Jul 16, 2024
1 parent f559555 commit b62fa54
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/py/flwr/cli/new/templates/app/code/server.hf.py.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ from flwr.server import ServerApp, ServerAppComponents, ServerConfig


def server_fn(context: Context):

# Read from config
num_rounds = int(context.run_config["num-server-rounds"])

Expand Down
1 change: 0 additions & 1 deletion src/py/flwr/cli/new/templates/app/code/server.jax.py.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ from flwr.server import ServerApp, ServerAppComponents, ServerConfig


def server_fn(context: Context):

# Read from config
num_rounds = int(context.run_config["num-server-rounds"])

Expand Down
1 change: 0 additions & 1 deletion src/py/flwr/cli/new/templates/app/code/server.mlx.py.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ from flwr.server.strategy import FedAvg


def server_fn(context: Context):

# Read from config
num_rounds = int(context.run_config["num-server-rounds"])

Expand Down
1 change: 0 additions & 1 deletion src/py/flwr/cli/new/templates/app/code/server.numpy.py.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ from flwr.server.strategy import FedAvg


def server_fn(context: Context):

# Read from config
num_rounds = int(context.run_config["num-server-rounds"])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ ndarrays = get_weights(Net())
parameters = ndarrays_to_parameters(ndarrays)

def server_fn(context: Context):

# Read from config
num_rounds = int(context.run_config["num-server-rounds"])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ from flwr.server.strategy import FedAvg


def server_fn(context: Context):

# Read from config
num_rounds = int(context.run_config["num-server-rounds"])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ config = ServerConfig(num_rounds=3)
parameters = ndarrays_to_parameters(load_model().get_weights())

def server_fn(context: Context):

# Read from config
num_rounds = int(context.run_config["num-server-rounds"])

Expand Down

0 comments on commit b62fa54

Please sign in to comment.