提交 6a6e0536 编写于 作者: W willzhang4a58

remove batch_size

上级 fa7f165d
......@@ -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;
......
......@@ -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_);
......
......@@ -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_;
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册