Skip to content

Commit

Permalink
Update experiments.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sjtudyq authored Jul 10, 2023
1 parent 11b2d3d commit 36fe91a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ def train_net_fednova(net_id, net, global_model, train_dataloader, test_dataload


a_i = (tau - args.rho * (1 - pow(args.rho, tau)) / (1 - args.rho)) / (1 - args.rho)
global_model.to(device)
global_model_para = global_model.state_dict()
net_para = net.state_dict()
norm_grad = copy.deepcopy(global_model.state_dict())
Expand Down

0 comments on commit 36fe91a

Please sign in to comment.