Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Oneflow-Inc
oneflow
提交
6a6e0536
O
oneflow
项目概览
Oneflow-Inc
/
oneflow
上一次同步 接近 3 年
通知
13
Star
2733
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oneflow
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6a6e0536
编写于
6月 09, 2017
作者:
W
willzhang4a58
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove batch_size
上级
fa7f165d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
0 addition
and
6 deletion
+0
-6
oneflow/core/job/job_conf.proto
oneflow/core/job/job_conf.proto
+0
-1
oneflow/core/job/job_desc.cpp
oneflow/core/job/job_desc.cpp
+0
-3
oneflow/core/job/job_desc.h
oneflow/core/job/job_desc.h
+0
-1
oneflow/core/job/job_desc.proto
oneflow/core/job/job_desc.proto
+0
-1
未找到文件。
oneflow/core/job/job_conf.proto
浏览文件 @
6a6e0536
...
...
@@ -11,7 +11,6 @@ message JobConf {
string
strategy_filepath
=
3
;
string
model_load_snapshot_path
=
4
;
string
model_save_snapshots_path
=
5
;
uint32
batch_size
=
6
;
uint32
piece_size
=
7
;
bool
is_train
=
8
;
FloatingPointType
floating_point_type
=
9
;
...
...
oneflow/core/job/job_desc.cpp
浏览文件 @
6a6e0536
...
...
@@ -10,7 +10,6 @@ void JobDesc::InitFromJobConf(const JobConf& conf) {
ParseProtoFromTextFile
(
conf
.
strategy_filepath
(),
&
strategy_
);
md_load_snapshot_path_
=
conf
.
model_load_snapshot_path
();
md_save_snapshots_path_
=
conf
.
model_save_snapshots_path
();
batch_size_
=
conf
.
batch_size
();
piece_size_
=
conf
.
piece_size
();
is_train_
=
conf
.
is_train
();
floating_point_type_
=
conf
.
floating_point_type
();
...
...
@@ -23,7 +22,6 @@ void JobDesc::InitFromProto(const JobDescProto& proto) {
strategy_
=
proto
.
strategy
();
md_load_snapshot_path_
=
proto
.
model_load_snapshot_path
();
md_save_snapshots_path_
=
proto
.
model_save_snapshots_path
();
batch_size_
=
proto
.
batch_size
();
piece_size_
=
proto
.
piece_size
();
is_train_
=
proto
.
is_train
();
floating_point_type_
=
proto
.
floating_point_type
();
...
...
@@ -35,7 +33,6 @@ void JobDesc::ToProto(JobDescProto* proto) const {
*
(
proto
->
mutable_strategy
())
=
strategy_
;
*
(
proto
->
mutable_model_load_snapshot_path
())
=
md_load_snapshot_path_
;
*
(
proto
->
mutable_model_save_snapshots_path
())
=
md_save_snapshots_path_
;
proto
->
set_batch_size
(
batch_size_
);
proto
->
set_piece_size
(
piece_size_
);
proto
->
set_is_train
(
is_train_
);
proto
->
set_floating_point_type
(
floating_point_type_
);
...
...
oneflow/core/job/job_desc.h
浏览文件 @
6a6e0536
...
...
@@ -40,7 +40,6 @@ class JobDesc final {
Strategy
strategy_
;
std
::
string
md_load_snapshot_path_
;
std
::
string
md_save_snapshots_path_
;
uint32_t
batch_size_
;
uint32_t
piece_size_
;
bool
is_train_
;
FloatingPointType
floating_point_type_
;
...
...
oneflow/core/job/job_desc.proto
浏览文件 @
6a6e0536
...
...
@@ -12,7 +12,6 @@ message JobDescProto {
Strategy
strategy
=
3
;
string
model_load_snapshot_path
=
4
;
string
model_save_snapshots_path
=
5
;
uint32
batch_size
=
6
;
uint32
piece_size
=
7
;
bool
is_train
=
8
;
FloatingPointType
floating_point_type
=
9
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录