14 #include "GpuIndexFlat.h"
15 #include "GpuIndicesOptions.h"
16 #include "../Clustering.h"
18 namespace faiss {
struct IndexIVF; }
20 namespace faiss {
namespace gpu {
int getNumProbes() const
Returns our current number of list probes per query.
void setNumProbes(int nprobe)
Sets the number of list probes per query.
int getNumLists() const
Returns the number of inverted lists we're managing.
GpuIndexFlatConfig flatConfig
Configuration for the coarse quantizer object.
GpuIndexFlat * getQuantizer()
Return the quantizer we're using.
int nprobe_
Number of inverted list probes per query.
void copyTo(faiss::IndexIVF *index) const
Copy what we have to the CPU equivalent.
long idx_t
all indices are this type
int nlist_
Number of inverted lists that we manage.
GpuIndexFlat * quantizer_
Quantizer for inverted lists.
void copyFrom(const faiss::IndexIVF *index)
Copy what we need from the CPU equivalent.
void add(Index::idx_t n, const float *x) override
IndicesOptions indicesOptions
Index storage options for the GPU.
MetricType
Some algorithms support both an inner product vetsion and a L2 search version.