在 syft 上使用 keras 训练模型联邦学习时,启动不同系统上的工作人员作为客户端工作人员,在终端上执行特定的命令行。
python -m tf_encrypted.player --config /tmp/tfe.config client name
此命令应在我的客户工作者之一的系统上执行。执行代码时
(PySyft) C:\Users\mades>python -m tf_encrypted.player --config /tmp/tfe.config server1
Falling back to insecure randomness since the required custom op could not be found for the installed version of TensorFlow. Fix this by compiling custom ops. Missing file was 'C:\Users\mades\AppData\Roaming\Python\Python37\site-packages\tf_encrypted/operations/secure_random/secure_random_module_tf_1.15.2.so'
WARNING:tensorflow:From C:\Users\mades\AppData\Roaming\Python\Python37\site-packages\tf_encrypted\session.py:24: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.
Traceback (most recent call last):
File "C:\Users\mades\Anaconda3\envs\PySyft\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\mades\Anaconda3\envs\PySyft\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\mades\AppData\Roaming\Python\Python37\site-packages\tf_encrypted\player\__main__.py", line 22, in <module>
config = RemoteConfig.load(args.config)
File "C:\Users\mades\AppData\Roaming\Python\Python37\site-packages\tf_encrypted\config.py", line 221, in load
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tfe.config'
如何在这个系统上准备联邦学习的配置文件?