@@ -89,7 +89,8 @@ void DownpourWorker::Initialize(const TrainerDesc& desc) {
8989 use_cvm_ = desc.use_cvm ();
9090 // for sparse value accessor, embedding only
9191 no_cvm_ = desc.no_cvm ();
92- scale_sparse_grad_ = desc.scale_sparse_grad ();
92+ scale_sparse_gradient_with_batch_size_ =
93+ desc.scale_sparse_gradient_with_batch_size ();
9394 scale_datanorm_ = desc.scale_datanorm ();
9495 dump_slot_ = desc.dump_slot ();
9596 adjust_ins_weight_config_ = desc.adjust_ins_weight_config ();
@@ -592,7 +593,8 @@ void DownpourWorker::TrainFilesWithProfiler() {
592593 *thread_scope_, tid, features_[tid], feature_labels_[tid],
593594 sparse_key_names_[tid], sparse_grad_names_[tid], table.emb_dim (),
594595 &feature_grads_[tid], &push_sparse_status_, cur_batch, use_cvm_,
595- dump_slot_, &sparse_push_keys_[tid], no_cvm_, scale_sparse_grad_);
596+ dump_slot_, &sparse_push_keys_[tid], no_cvm_,
597+ scale_sparse_gradient_with_batch_size_);
596598 timeline.Pause ();
597599 push_sparse_time += timeline.ElapsedSec ();
598600 total_time += timeline.ElapsedSec ();
@@ -867,7 +869,8 @@ void DownpourWorker::TrainFiles() {
867869 *thread_scope_, tid, features_[tid], feature_labels_[tid],
868870 sparse_key_names_[tid], sparse_grad_names_[tid], table.emb_dim (),
869871 &feature_grads_[tid], &push_sparse_status_, cur_batch, use_cvm_,
870- dump_slot_, &sparse_push_keys_[tid], no_cvm_, scale_sparse_grad_);
872+ dump_slot_, &sparse_push_keys_[tid], no_cvm_,
873+ scale_sparse_gradient_with_batch_size_);
871874 }
872875 }
873876
0 commit comments