Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleRec
提交
587e383e
P
PaddleRec
项目概览
PaddlePaddle
/
PaddleRec
通知
68
Star
12
Fork
5
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
27
列表
看板
标记
里程碑
合并请求
10
Wiki
1
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleRec
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
27
Issue
27
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
1
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
587e383e
编写于
8月 04, 2020
作者:
M
malin10
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fix
上级
854eddce
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
5 deletion
+4
-5
core/trainers/framework/runner.py
core/trainers/framework/runner.py
+0
-1
models/recall/gnn/config.yaml
models/recall/gnn/config.yaml
+4
-4
未找到文件。
core/trainers/framework/runner.py
浏览文件 @
587e383e
...
@@ -520,7 +520,6 @@ class SingleInferRunner(RunnerBase):
...
@@ -520,7 +520,6 @@ class SingleInferRunner(RunnerBase):
def
run
(
self
,
context
):
def
run
(
self
,
context
):
self
.
_dir_check
(
context
)
self
.
_dir_check
(
context
)
self
.
epoch_model_name_list
.
sort
()
for
index
,
epoch_name
in
enumerate
(
self
.
epoch_model_name_list
):
for
index
,
epoch_name
in
enumerate
(
self
.
epoch_model_name_list
):
for
model_dict
in
context
[
"phases"
]:
for
model_dict
in
context
[
"phases"
]:
model_class
=
context
[
"model"
][
model_dict
[
"name"
]][
"model"
]
model_class
=
context
[
"model"
][
model_dict
[
"name"
]][
"model"
]
...
...
models/recall/gnn/config.yaml
浏览文件 @
587e383e
...
@@ -42,14 +42,14 @@ hyper_parameters:
...
@@ -42,14 +42,14 @@ hyper_parameters:
gnn_propogation_steps
:
1
gnn_propogation_steps
:
1
# select runner by name
# select runner by name
mode
:
[
train_runner
,
infer_runn
er
]
mode
:
[
single_cpu_train
,
single_cpu_inf
er
]
# config of each runner.
# config of each runner.
# runner is a kind of paddle training class, which wraps the train/infer process.
# runner is a kind of paddle training class, which wraps the train/infer process.
runner
:
runner
:
-
name
:
train_runner
-
name
:
single_cpu_train
class
:
train
class
:
train
# num of epochs
# num of epochs
epochs
:
2
epochs
:
5
# device to run training or infer
# device to run training or infer
device
:
cpu
device
:
cpu
save_checkpoint_interval
:
1
# save model interval of epochs
save_checkpoint_interval
:
1
# save model interval of epochs
...
@@ -61,7 +61,7 @@ runner:
...
@@ -61,7 +61,7 @@ runner:
init_model_path
:
"
"
# load model path
init_model_path
:
"
"
# load model path
print_interval
:
1
print_interval
:
1
phases
:
[
phase1
]
phases
:
[
phase1
]
-
name
:
infer_runn
er
-
name
:
single_cpu_inf
er
class
:
infer
class
:
infer
# device to run training or infer
# device to run training or infer
device
:
cpu
device
:
cpu
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录