Parcourir la source

fix: fix error

shellmiao il y a 11 mois
Parent
commit
b3971f95df
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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]