diff --git a/paddle_fl/core/trainer/diffiehellman/diffiehellman.py b/paddle_fl/core/trainer/diffiehellman/diffiehellman.py index cae4b26187fc548df7055922b6a08fa2d831427d..d5e1b196f56e5694b4112a8ff82022ee3bac7910 100644 --- a/paddle_fl/core/trainer/diffiehellman/diffiehellman.py +++ b/paddle_fl/core/trainer/diffiehellman/diffiehellman.py @@ -43,7 +43,7 @@ try: rng = RAND_bytes except(AttributeError, ImportError): rng = os.urandom - + class DiffieHellman: """ Implements the Diffie-Hellman key exchange protocol. diff --git a/paddle_fl/examples/secagg_demo/fl_scheduler.py b/paddle_fl/examples/secagg_demo/fl_scheduler.py index 06f26897e88e830b66fe6fda11d83c99463507ae..649f74768ef76cf1f8af52319b3818144f37e98a 100644 --- a/paddle_fl/examples/secagg_demo/fl_scheduler.py +++ b/paddle_fl/examples/secagg_demo/fl_scheduler.py @@ -2,7 +2,7 @@ from paddle_fl.core.scheduler.agent_master import FLScheduler 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() diff --git a/paddle_fl/version.py b/paddle_fl/version.py index fb756cdd7e35182d10d99bbfe17005950c9745f2..1ba4b84c2ffe81085dea2f8813a922be92b980d2 100644 --- a/paddle_fl/version.py +++ b/paddle_fl/version.py @@ -14,3 +14,4 @@ """ PaddleFL version string """ fl_version = "0.1.7" module_proto_version = "0.1.7" +