set_num_threads
API Definition
def set_num_threads(num_threads: int) -> None
Function
Configures the number of threads for search operations (KScaNN-specific addition).
Parameters
Parameter |
Description |
Data Type |
Value Range |
|---|---|---|---|
num_threads |
Number of threads. |
int |
≥ 2. The recommended value is the number of CPU cores during runtime. |
Parent topic: Python APIs