提交 aef63944 编写于 作者: T tensor-tang

skip train list when inference, skip test list when training

上级 06d24e3a
......@@ -16,7 +16,11 @@ args = {
'is_infer': is_infer
}
define_py_data_sources2(
"train.list", "test.list", module="provider", obj="process", args=args)
"train.list" if not is_infer else None,
"test.list" if is_infer else None,
module="provider",
obj="process",
args=args)
settings(
batch_size=batch_size,
......
......@@ -16,7 +16,11 @@ args = {
'is_infer': is_infer
}
define_py_data_sources2(
"train.list", "test.list", module="provider", obj="process", args=args)
"train.list" if not is_infer else None,
"test.list" if is_infer else None,
module="provider",
obj="process",
args=args)
settings(
batch_size=batch_size,
......
......@@ -16,7 +16,11 @@ args = {
'is_infer': is_infer
}
define_py_data_sources2(
"train.list", "test.list", module="provider", obj="process", args=args)
"train.list" if not is_infer else None,
"test.list" if is_infer else None,
module="provider",
obj="process",
args=args)
settings(
batch_size=batch_size,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册