Source header: cuvs/neighbors/ivf_sq.h
Supplemental parameters to build IVF-SQ Index
Fields
Allocate IVF-SQ Index params, and populate with default values
Parameters
Returns
De-allocate IVF-SQ Index params
Parameters
Returns
Supplemental parameters to search IVF-SQ index
Fields
Allocate IVF-SQ search params, and populate with default values
Parameters
Returns
De-allocate IVF-SQ search params
Parameters
Returns
Struct to hold address of cuvs::neighbors::ivf_sq::index and its active trained dtype
Fields
Allocate IVF-SQ index
Parameters
Returns
De-allocate IVF-SQ index
Parameters
Returns
Get the number of clusters/inverted lists
Parameters
Returns
Get the dimensionality of the data
Parameters
Returns
Get the size of the index
Parameters
Returns
Get the cluster centers corresponding to the lists [n_lists, dim]
Parameters
Returns
Build an IVF-SQ index with a DLManagedTensor which has underlying DLDeviceType equal to kDLCUDA, kDLCUDAHost, kDLCUDAManaged, or kDLCPU. Also, acceptable underlying types are: 1. kDLDataType.code == kDLFloat and kDLDataType.bits = 32 2. kDLDataType.code == kDLFloat and kDLDataType.bits = 16
Parameters
Returns
Search an IVF-SQ index with a DLManagedTensor which has underlying DLDeviceType equal to kDLCUDA, kDLCUDAHost, kDLCUDAManaged. Types for input are: 1. queries: kDLDataType.code == kDLFloat and kDLDataType.bits = 32 or 16 2. neighbors: kDLDataType.code == kDLInt and kDLDataType.bits = 64 3. distances: kDLDataType.code == kDLFloat and kDLDataType.bits = 32
Parameters
Returns
Save the index to file.
Experimental, both the API and the serialization format are subject to change.
Parameters
Returns
Load index from file.
Experimental, both the API and the serialization format are subject to change.
Parameters
Returns
Extend the index with the new data.
Parameters
Returns