From 89db9e284bf0a48016a8bafe104e289063a05c54 Mon Sep 17 00:00:00 2001 From: Jerseyshin <50386604+Jerseyshin@users.noreply.github.com> Date: Mon, 8 Apr 2024 15:08:20 +0800 Subject: [PATCH] Update marvell.py: fix ordering --- fedlearner/privacy/splitnn/marvell.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fedlearner/privacy/splitnn/marvell.py b/fedlearner/privacy/splitnn/marvell.py index 2810f15b8..e40c53ac1 100644 --- a/fedlearner/privacy/splitnn/marvell.py +++ b/fedlearner/privacy/splitnn/marvell.py @@ -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)