Skip to content

Commit

Permalink
Update worker.py (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrayraykk authored Aug 29, 2022
1 parent c57ddac commit 1fe2880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions federatedscope/gfl/gcflplus/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ def check_and_move_on(self, check_eval_result=False):

if self.state < self.total_round_num:
for cluster in self.cluster_indices:
msg_lsit = list()
msg_list = list()
for key in cluster:
content = self.msg_buffer['train'][self.state -
1][key]
train_data_size, model_para, client_dw, \
convGradsNorm = content
msg_lsit.append((train_data_size, model_para))
msg_list.append((train_data_size, model_para))

agg_info = {
'client_feedback': msg_list,
Expand Down

0 comments on commit 1fe2880

Please sign in to comment.