pub struct SearchParams(pub cuvsIvfPqSearchParams_t);Expand description
Supplemental parameters to search IvfPq index
Tuple Fields§
§0: cuvsIvfPqSearchParams_tImplementations§
Source§impl SearchParams
impl SearchParams
Sourcepub fn new() -> Result<SearchParams>
pub fn new() -> Result<SearchParams>
Returns a new SearchParams object
Sourcepub fn set_n_probes(self, n_probes: u32) -> SearchParams
pub fn set_n_probes(self, n_probes: u32) -> SearchParams
The number of clusters to search.
Sourcepub fn set_lut_dtype(self, lut_dtype: cudaDataType_t) -> SearchParams
pub fn set_lut_dtype(self, lut_dtype: cudaDataType_t) -> SearchParams
Data type of look up table to be created dynamically at search time. The use of low-precision types reduces the amount of shared memory required at search time, so fast shared memory kernels can be used even for datasets with large dimansionality. Note that the recall is slightly degraded when low-precision type is selected.
Sourcepub fn set_internal_distance_dtype(
self,
internal_distance_dtype: cudaDataType_t,
) -> SearchParams
pub fn set_internal_distance_dtype( self, internal_distance_dtype: cudaDataType_t, ) -> SearchParams
Storage data type for distance/similarity computation.
Trait Implementations§
Source§impl Debug for SearchParams
impl Debug for SearchParams
Auto Trait Implementations§
impl Freeze for SearchParams
impl RefUnwindSafe for SearchParams
impl !Send for SearchParams
impl !Sync for SearchParams
impl Unpin for SearchParams
impl UnwindSafe for SearchParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more