getListCodesAndIds

API Definition

void getListCodesAndIds(int listId, int deviceId, std::vector<uint8_t> &codes, std::vector<ascend_idx_t> &ids) const

Function

Obtains the feature vector and corresponding ID of the specific listId in the specific deviceId from AscendIndexIVFPQ.

Input

int listId: value of listId to be queried

int deviceId: value of deviceId to be queried

Output

std::vector<uint8_t> &codes: feature vectors of the specific listId in the specific deviceId.

std::vector<ascend_idx_t> &ids: feature vector ID of the specific listId in the specific deviceId.

Return Value

N/A

Restrictions

  • 0 ≤ listId < nlist
  • The deviceId must be a valid processor ID.