getBaseSize

API definition

size_t getBaseSize(int deviceId) const

Function

Obtains the number of feature vectors managed by AscendIndexFlat in the specific deviceId.

Input

int deviceId: processor name on the NPU.

Output

N/A

Return value

Number of feature vectors in the specific deviceId.

Restrictions

The deviceId must be a valid processor ID.