reserveMemory
API Definition |
void reserveMemory(size_t numVecs) override |
|---|---|
Function |
Allocates reserved memory for the base library. |
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: AscendIndexInt8IVF