Skip to content

Commit

Permalink
Update flow.py
Browse files Browse the repository at this point in the history
Signed-off-by: Parth Mandaliya <parthx.mandaliya@intel.com>
  • Loading branch information
ParthM-GitHub committed Sep 28, 2023
1 parent 07f283f commit 1c53e30
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ def inference(network, test_loader):


def fedavg(models):
models = [model.to('cpu') for model in models]
new_model = models[0]
state_dicts = [model.state_dict() for model in models]
state_dict = new_model.state_dict()
Expand Down

0 comments on commit 1c53e30

Please sign in to comment.