From 36fe91ac459180f1a7f30f48905b5a2ce621412f Mon Sep 17 00:00:00 2001 From: sjtudyq <48618508+sjtudyq@users.noreply.github.com> Date: Mon, 10 Jul 2023 15:06:58 +0800 Subject: [PATCH] Update experiments.py --- experiments.py | 1 + 1 file changed, 1 insertion(+) diff --git a/experiments.py b/experiments.py index 489746f..1e7941c 100644 --- a/experiments.py +++ b/experiments.py @@ -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())