shellmiao пре 11 месеци
родитељ
комит
b3971f95df
1 измењених фајлова са 1 додато и 1 уклоњено
  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]