Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleFL
提交
cae2088b
P
PaddleFL
项目概览
PaddlePaddle
/
PaddleFL
通知
35
Star
5
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
6
列表
看板
标记
里程碑
合并请求
4
Wiki
3
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleFL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
6
Issue
6
列表
看板
标记
里程碑
合并请求
4
合并请求
4
Pages
分析
分析
仓库分析
DevOps
Wiki
3
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
cae2088b
编写于
2月 10, 2020
作者:
D
Dong Daxiang
提交者:
GitHub
2月 10, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #39 from qjing666/master
fix bug in submitter_demo:
上级
12245d99
95cdf430
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
7 addition
and
7 deletion
+7
-7
paddle_fl/examples/submitter_demo/scheduler_client.py
paddle_fl/examples/submitter_demo/scheduler_client.py
+2
-2
paddle_fl/examples/submitter_demo/train_program.py
paddle_fl/examples/submitter_demo/train_program.py
+2
-2
paddle_fl/version.py
paddle_fl/version.py
+2
-2
setup.py
setup.py
+1
-1
未找到文件。
paddle_fl/examples/submitter_demo/scheduler_client.py
浏览文件 @
cae2088b
...
@@ -18,8 +18,8 @@ print(random_port)
...
@@ -18,8 +18,8 @@ print(random_port)
current_ip
=
socket
.
gethostbyname
(
socket
.
gethostname
())
current_ip
=
socket
.
gethostbyname
(
socket
.
gethostname
())
endpoints
=
"{}:{}"
.
format
(
current_ip
,
random_port
)
endpoints
=
"{}:{}"
.
format
(
current_ip
,
random_port
)
#start a web server for remote endpoints to download their config
#start a web server for remote endpoints to download their config
#
os.system("python -m SimpleHTTPServer 8080 &")
os
.
system
(
"python -m SimpleHTTPServer 8080 &"
)
os
.
system
(
"python -m http.server 8080 &"
)
#
os.system("python -m http.server 8080 &")
if
os
.
path
.
exists
(
"job_config"
):
if
os
.
path
.
exists
(
"job_config"
):
os
.
system
(
"rm -rf job_config"
)
os
.
system
(
"rm -rf job_config"
)
if
os
.
path
.
exists
(
"package"
):
if
os
.
path
.
exists
(
"package"
):
...
...
paddle_fl/examples/submitter_demo/train_program.py
浏览文件 @
cae2088b
...
@@ -91,12 +91,12 @@ else:
...
@@ -91,12 +91,12 @@ else:
output_folder
=
"fl_model"
output_folder
=
"fl_model"
epoch_id
=
0
epoch_id
=
0
while
not
trainer
.
stop
():
while
not
trainer
.
stop
():
print
(
"
batch %d start train"
%
(
step_i
))
print
(
"
epoch %d start train"
%
(
epoch_id
))
step_i
=
0
step_i
=
0
for
data
in
reader
():
for
data
in
reader
():
trainer
.
run
(
feed
=
data
,
fetch
=
[])
trainer
.
run
(
feed
=
data
,
fetch
=
[])
step_i
+=
1
step_i
+=
1
if
train_step
==
trainer
.
_step
:
if
step_i
==
trainer
.
_step
:
break
break
epoch_id
+=
1
epoch_id
+=
1
if
epoch_id
%
5
==
0
:
if
epoch_id
%
5
==
0
:
...
...
paddle_fl/version.py
浏览文件 @
cae2088b
...
@@ -12,6 +12,6 @@
...
@@ -12,6 +12,6 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
""" PaddleFL version string """
""" PaddleFL version string """
fl_version
=
"0.1.
7
"
fl_version
=
"0.1.
10
"
module_proto_version
=
"0.1.
7
"
module_proto_version
=
"0.1.
10
"
setup.py
浏览文件 @
cae2088b
...
@@ -29,7 +29,7 @@ def python_version():
...
@@ -29,7 +29,7 @@ def python_version():
max_version
,
mid_version
,
min_version
=
python_version
()
max_version
,
mid_version
,
min_version
=
python_version
()
REQUIRED_PACKAGES
=
[
REQUIRED_PACKAGES
=
[
'six >= 1.10.0'
,
'protobuf >= 3.1.0'
,
'paddlepaddle >= 1.6'
,
'zmq'
'six >= 1.10.0'
,
'protobuf >= 3.1.0'
,
'paddlepaddle >= 1.6'
,
'zmq'
,
'paddlepaddle-gpu >= 1.6'
]
]
if
max_version
<
3
:
if
max_version
<
3
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录