getBase
API definition |
void getBase(int deviceId, char* xb) const; |
|---|---|
Function |
Obtains the feature vectors managed by AscendIndexFlat in the specific deviceId. |
Input |
int deviceId: device ID |
Output |
char* xb: base vectors stored in deviceId by AscendIndexFlat. |
Return value |
N/A |
Restrictions |
deviceId must be a valid device ID. xb must be a non-null pointer and the length must be dims × BaseSize × sizeof(float32) bytes. Otherwise, an out-of-bounds read/write error may occur, causing program breakdown. BaseSize is the return value of the getBaseSize function. |
Parent topic: AscendIndexFlat