Skip to content

Commit

Permalink
Merge pull request #35 from qjing666/secagg
Browse files Browse the repository at this point in the history
Add scheduler to Secagg
  • Loading branch information
qjing666 committed Feb 3, 2020
2 parents 48fac0a + c28289c commit 12245d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paddle_fl/core/trainer/diffiehellman/diffiehellman.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
rng = RAND_bytes
except(AttributeError, ImportError):
rng = os.urandom

class DiffieHellman:
"""
Implements the Diffie-Hellman key exchange protocol.
Expand Down
2 changes: 1 addition & 1 deletion paddle_fl/examples/secagg_demo/fl_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

worker_num = 2
server_num = 1
# Define the number of worker/server and the port for scheduler

scheduler = FLScheduler(worker_num,server_num,port=9091)
scheduler.set_sample_worker_num(worker_num)
scheduler.init_env()
Expand Down
1 change: 1 addition & 0 deletions paddle_fl/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
""" PaddleFL version string """
fl_version = "0.1.7"
module_proto_version = "0.1.7"

0 comments on commit 12245d9

Please sign in to comment.