shellmiao 11 mesiacov pred
rodič
commit
b3971f95df
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      applications/fedssl/server_with_pgfed.py

+ 1 - 1
applications/fedssl/server_with_pgfed.py

@@ -64,7 +64,7 @@ class FedSSLWithPgFedServer(FedSSLServer):
         self.track(metric.TRAIN_TIME, train_time)
     
     def send_param(self):
-        if self.alpha_mat!=None:
+        if self.alpha_mat==None:
             self.alpha_mat = (torch.ones((len(self._clients), len(self._clients))) / self.conf.server.clients_per_round).to(self.conf.device)
         for client in self.grouped_clients:
             client.a_i = self.alpha_mat[client.id]