From ab13fd431ad67ad92387f24e53eb9f0fe012f247 Mon Sep 17 00:00:00 2001 From: Jiawei Wang Date: Mon, 6 Sep 2021 18:55:15 +0800 Subject: [PATCH] Update general_dist_kv_infer_op.cpp --- core/general-server/op/general_dist_kv_infer_op.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/general-server/op/general_dist_kv_infer_op.cpp b/core/general-server/op/general_dist_kv_infer_op.cpp index 8ee5033d..a8f438c2 100644 --- a/core/general-server/op/general_dist_kv_infer_op.cpp +++ b/core/general-server/op/general_dist_kv_infer_op.cpp @@ -181,7 +181,7 @@ int GeneralDistKVInferOp::inference() { continue; } VLOG(2) << "(logid=" << log_id << ") key: " << keys[cube_val_idx] << " , cube value len:" << cur_val->buff.size(); - memcpy(data_ptr, cur_val->buff.data(), cur_val->buff.size()); + memcpy(data_ptr, cur_val->buff.data() + 10, sizeof(float) * EMBEDDING_SIZE); //VLOG(3) << keys[cube_val_idx] << ":" << data_ptr[0] << ", " << data_ptr[1] << ", " <