AscendIndexInt8IVFConfig
API Definition |
inline AscendIndexInt8IVFConfig(std::initializer_list<int> devices, int64_t resourceSize = INT8_IVF_DEFAULT_MEM) |
|---|---|
Function |
Constructor of AscendIndexInt8IVFConfig, which is used to specify the NPU processor resources and resource pool size. |
Input |
std::initializer_list<int> devices: NPU processor resources. int64_t resourceSize: preset memory pool size on the device, in bytes. It is the memory space for storing intermediate results during computing to prevent performance fluctuation caused by dynamic memory allocation. The default parameter is INT8_IVF_DEFAULT_MEM in the header file. This parameter is determined by the base library capacity and the number of search batches. If the base library has 10 million records or more and the number of the batches is greater than or equal to 16, set this parameter to 1024 MB. |
Output |
N/A |
Return Value |
N/A |
Restrictions |
|