Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
TsingZ0 committed Nov 10, 2024
1 parent dc4ec82 commit be61cc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/flcore/servers/servercp.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ def train(self):
print("\nAverage time cost per round.")
print(sum(self.Budget[1:])/len(self.Budget[1:]))

self.save_results()
self.save_global_model()


def receive_models(self):
assert (len(self.selected_clients) > 0)
Expand Down
3 changes: 3 additions & 0 deletions system/flcore/servers/servergpfl.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def train(self):
print("\nAverage time cost per round.")
print(sum(self.Budget[1:])/len(self.Budget[1:]))

self.save_results()
self.save_global_model()


def receive_models(self):
assert (len(self.selected_clients) > 0)
Expand Down

0 comments on commit be61cc1

Please sign in to comment.