getBase

API Definition

void getBase(int deviceId, char* codes) const

Function

Obtains the feature vectors managed by AscendIndexSQ in the specific deviceId.

Input

int deviceId: processor name on the NPU.

Output

char* codes: feature vectors of base library stored in deviceId by AscendIndexSQ.

Return Value

N/A

Restrictions

  • The deviceId must be a valid processor ID.
  • The value of codes must be a non-null pointer and the length must be dim x BaseSize x sizeof(uint8_t) bytes. Otherwise, an out-of-bounds read/write error may occur, causing program breakdown. BaseSize is the return value of the getBaseSize function.