@@ -89,6 +89,7 @@ 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 ();
9293 scale_datanorm_ = desc.scale_datanorm ();
9394 dump_slot_ = desc.dump_slot ();
9495 adjust_ins_weight_config_ = desc.adjust_ins_weight_config ();
@@ -591,7 +592,7 @@ void DownpourWorker::TrainFilesWithProfiler() {
591592 *thread_scope_, tid, features_[tid], feature_labels_[tid],
592593 sparse_key_names_[tid], sparse_grad_names_[tid], table.emb_dim (),
593594 &feature_grads_[tid], &push_sparse_status_, cur_batch, use_cvm_,
594- dump_slot_, &sparse_push_keys_[tid], no_cvm_);
595+ dump_slot_, &sparse_push_keys_[tid], no_cvm_, scale_sparse_grad_ );
595596 timeline.Pause ();
596597 push_sparse_time += timeline.ElapsedSec ();
597598 total_time += timeline.ElapsedSec ();
@@ -866,7 +867,7 @@ void DownpourWorker::TrainFiles() {
866867 *thread_scope_, tid, features_[tid], feature_labels_[tid],
867868 sparse_key_names_[tid], sparse_grad_names_[tid], table.emb_dim (),
868869 &feature_grads_[tid], &push_sparse_status_, cur_batch, use_cvm_,
869- dump_slot_, &sparse_push_keys_[tid], no_cvm_);
870+ dump_slot_, &sparse_push_keys_[tid], no_cvm_, scale_sparse_grad_ );
870871 }
871872 }
872873
0 commit comments