reserveMemory
API Definition |
void reserveMemory(size_t numVecs) override |
|---|---|
Function |
An abstract API for allocating reserved memory for the base library before it is created. It inherits the APIs in AscendIndex and provides specific implementation. |
Input |
size_t numVecs: number of the base libraries for which reserved memory is allocated. |
Output |
N/A |
Return Value |
N/A |
Restrictions |
The value of numVecs cannot exceed 1e9. Otherwise, the memory on the device may be insufficient. As a result, memory allocation fails and the process on the device restarts. |
Parent topic: AscendIndexIVF