Skip to content

Commit

Permalink
Update marvell.py: fix ordering (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerseyshin authored Apr 8, 2024
1 parent 51673e8 commit 383d1a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fedlearner/privacy/splitnn/marvell.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ def solve_small_pos(u, v, d, g_norm_square, p, P, lam10=None, lam11=None, lam21=
elif lam11:
ordering = [1, 0, 2]
else:
ordering = [1, 2, 0]
while True:
if i % 3 == ordering[0]: # fix lam21
D = np.float32(P - p * (d - np.float32(1.0)) * lam21)
Expand Down

0 comments on commit 383d1a5

Please sign in to comment.