浏览代码

fix: test

shellmiao 11 月之前
父节点
当前提交
8b8e5c5a59
共有 1 个文件被更改,包括 2 次插入0 次删除
  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: