shellmiao 11 miesięcy temu
rodzic
commit
8b8e5c5a59
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      applications/fedssl/client_with_pgfed.py

+ 2 - 0
applications/fedssl/client_with_pgfed.py

@@ -24,6 +24,8 @@ L2 = "l2"
 
 def model_dot_product(w1, w2, requires_grad=True):
     """ Return the sum of squared difference between two models. """
+    print(w1)
+    print(w2)
     dot_product = 0.0
     for p1, p2 in zip(w1.parameters(), w2.parameters()):
         if requires_grad: