Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PARL
提交
0e0a9551
P
PARL
项目概览
PaddlePaddle
/
PARL
通知
67
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PARL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0e0a9551
编写于
4月 01, 2020
作者:
Z
zhoubo01
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
commemt
上级
ec470ea4
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
3 addition
and
6 deletion
+3
-6
deepes/benchmark/cartpole_config.prototxt
deepes/benchmark/cartpole_config.prototxt
+1
-1
deepes/src/paddle/async_es_agent.cc
deepes/src/paddle/async_es_agent.cc
+2
-5
未找到文件。
deepes/benchmark/cartpole_config.prototxt
浏览文件 @
0e0a9551
...
@@ -11,5 +11,5 @@ optimizer {
...
@@ -11,5 +11,5 @@ optimizer {
epsilon: 1e-08
epsilon: 1e-08
}
}
async_es {
async_es {
model_iter_id:
99
model_iter_id:
0
}
}
deepes/src/paddle/async_es_agent.cc
浏览文件 @
0e0a9551
...
@@ -30,7 +30,7 @@ AsyncESAgent::~AsyncESAgent() {
...
@@ -30,7 +30,7 @@ AsyncESAgent::~AsyncESAgent() {
bool
AsyncESAgent
::
_save
()
{
bool
AsyncESAgent
::
_save
()
{
bool
success
=
true
;
bool
success
=
true
;
if
(
_is_sampling_agent
)
{
if
(
_is_sampling_agent
)
{
LOG
(
ERROR
)
<<
"[DeepES]
Original
AsyncESAgent cannot call `save`.Please use cloned AsyncESAgent."
;
LOG
(
ERROR
)
<<
"[DeepES]
Cloned
AsyncESAgent cannot call `save`.Please use cloned AsyncESAgent."
;
success
=
false
;
success
=
false
;
return
success
;
return
success
;
}
}
...
@@ -43,10 +43,7 @@ bool AsyncESAgent::_save() {
...
@@ -43,10 +43,7 @@ bool AsyncESAgent::_save() {
time
(
&
rawtime
);
time
(
&
rawtime
);
timeinfo
=
localtime
(
&
rawtime
);
timeinfo
=
localtime
(
&
rawtime
);
strftime
(
buffer
,
sizeof
(
buffer
),
"%d-%m-%Y-%H:%M:%S"
,
timeinfo
);
std
::
string
model_name
=
"model_iter_id-"
+
std
::
to_string
(
model_iter_id
);
std
::
string
current_time
(
buffer
);
std
::
string
model_name
=
current_time
+
"-model_iter_id-"
+
std
::
to_string
(
model_iter_id
);
model_name
=
"model_iter_id-"
+
std
::
to_string
(
model_iter_id
);
std
::
string
model_path
=
_config
->
async_es
().
model_warehouse
()
+
"/"
+
model_name
;
std
::
string
model_path
=
_config
->
async_es
().
model_warehouse
()
+
"/"
+
model_name
;
LOG
(
INFO
)
<<
"[save]model_path: "
<<
model_path
;
LOG
(
INFO
)
<<
"[save]model_path: "
<<
model_path
;
_predictor
->
SaveOptimizedModel
(
model_path
,
LiteModelType
::
kProtobuf
);
_predictor
->
SaveOptimizedModel
(
model_path
,
LiteModelType
::
kProtobuf
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录