From 030c7e7e9da1e96121ad68861d4a2ac5e3dd09b7 Mon Sep 17 00:00:00 2001 From: xjqbest <173596896@qq.com> Date: Thu, 28 Mar 2019 16:20:59 +0800 Subject: [PATCH] fix FillSparseValue error test=develop --- paddle/fluid/framework/downpour_worker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/framework/downpour_worker.cc b/paddle/fluid/framework/downpour_worker.cc index 37e0c6ef2..dab3113fb 100644 --- a/paddle/fluid/framework/downpour_worker.cc +++ b/paddle/fluid/framework/downpour_worker.cc @@ -122,7 +122,7 @@ void DownpourWorker::FillSparseValue(size_t table_idx) { auto& fea_value = feature_values_[table_id]; auto fea_idx = 0u; - std::vector init_value(table.emb_dim()); + std::vector init_value(table.fea_dim()); for (size_t i = 0; i < sparse_key_names_[table_id].size(); ++i) { std::string slot_name = sparse_key_names_[table_id][i]; std::string emb_slot_name = sparse_value_names_[table_id][i]; -- GitLab