getListLength

API Definition

uint32_t getListLength(int listId, int deviceId) const

Function

Obtains the length 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

N/A

Return Value

Length of the specific listId in the specific deviceId

Restrictions

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