提交 99b61e3b 编写于 作者: G groot

fix bug


Former-commit-id: 4f365862e364a8b6232a9d959354dd609db6a040
上级 b2d988b9
......@@ -325,7 +325,6 @@ AddBatchVectorTask::AddBatchVectorTask(const std::string& group_id,
bin_tensor_list_(tensor_list),
tensor_ids_(ids) {
tensor_ids_.clear();
tensor_ids_.resize(tensor_list->tensor_list.size());
}
BaseTaskPtr AddBatchVectorTask::Create(const std::string& group_id,
......@@ -469,6 +468,7 @@ ServerError AddBatchVectorTask::OnExecute() {
SERVER_LOG_ERROR << "Vector ID not returned";
return SERVER_UNEXPECTED_ERROR;
} else {
tensor_ids_.resize(vector_ids.size());
if(vec_count < USE_MT) {
ProcessIdMapping(vector_ids, 0, vec_count, tensor_ids_);
rc.Record("built id mapping");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册