[skip e2e] Grammar correction (#13929)

Signed-off-by: cxytz01 <xueyou.chen@zilliz.com>
This commit is contained in:
cxytz01 2021-12-22 20:08:25 +08:00 committed by GitHub
parent b704981fa3
commit 756a09a44b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,7 +255,7 @@ GetIdsOfQueryResult(CIndexQueryResult res, int64_t* ids) {
auto c_res = (milvus::indexbuilder::IndexWrapper::QueryResult*)res;
auto nq = c_res->nq;
auto k = c_res->topk;
// TODO: how could we avoid memory copy every time when this called
// TODO: how could we avoid memory copy whenever this called
memcpy(ids, c_res->ids.data(), sizeof(int64_t) * nq * k);
}
@ -264,7 +264,7 @@ GetDistancesOfQueryResult(CIndexQueryResult res, float* distances) {
auto c_res = (milvus::indexbuilder::IndexWrapper::QueryResult*)res;
auto nq = c_res->nq;
auto k = c_res->topk;
// TODO: how could we avoid memory copy every time when this called
// TODO: how could we avoid memory copy whenever this called
memcpy(distances, c_res->distances.data(), sizeof(float) * nq * k);
}