mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip e2e] Grammar correction (#13929)
Signed-off-by: cxytz01 <xueyou.chen@zilliz.com>
This commit is contained in:
parent
b704981fa3
commit
756a09a44b
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user