diff --git a/oneflow/core/job/job_conf.proto b/oneflow/core/job/job_conf.proto index 993b6aa5ec7fa3798c3c47f64477c917945f941c..e6d65a0132ad397902858061d014cb3d91c300ca 100644 --- a/oneflow/core/job/job_conf.proto +++ b/oneflow/core/job/job_conf.proto @@ -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; diff --git a/oneflow/core/job/job_desc.cpp b/oneflow/core/job/job_desc.cpp index ade6f7ce7a387ddd302c31781e7d26397737a38b..c04bc498b950d1585a8c0817d136b3ea90001543 100644 --- a/oneflow/core/job/job_desc.cpp +++ b/oneflow/core/job/job_desc.cpp @@ -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_); diff --git a/oneflow/core/job/job_desc.h b/oneflow/core/job/job_desc.h index b1db43d90080c768baed14eb9c92eb450b43253a..0be62dead42a2b731c733dc142d837d8c306c015 100644 --- a/oneflow/core/job/job_desc.h +++ b/oneflow/core/job/job_desc.h @@ -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_; diff --git a/oneflow/core/job/job_desc.proto b/oneflow/core/job/job_desc.proto index 249bc1c84f66367f14911812279fcda43fbdc944..8361eeb634cc7fe4ffc68d182324a1ce55d7c671 100644 --- a/oneflow/core/job/job_desc.proto +++ b/oneflow/core/job/job_desc.proto @@ -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;