Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerroth committed May 3, 2024
1 parent 90da22f commit e904d94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/hello-world/python_jobs/pt/client_api_pt.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
)
job.to(controller, "server")

# Define the initial server model
# Define the initial global model and send to server
job.to(Net(), "server")

# Add clients
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-world/python_jobs/pt/client_api_pt_swarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

# In swarm learning, each client acts also as an aggregator
aggregator = InTimeAccumulateWeightedAggregator(expected_data_kind=DataKind.WEIGHTS)
job.to(aggregator, f"site-{i}", id="aggregator")
job.to(aggregator, f"site-{i}")

# In swarm learning, each client uses a model persistor and shareable_generator
job.to(PTFileModelPersistor(model=Net()), f"site-{i}")
Expand Down

0 comments on commit e904d94

Please sign in to comment.