Browse Source

fix: fix error

shellmiao 11 months ago
parent
commit
b3971f95df
1 changed files with 1 additions and 1 deletions
  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]