12 #include "GpuIndexFlat.h"
13 #include "GpuIndicesOptions.h"
14 #include "../Clustering.h"
16 namespace faiss {
struct IndexIVF; }
18 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.
bool addImplRequiresIDs_() const override
long idx_t
all indices are this type
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.
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.
IndicesOptions indicesOptions
Index storage options for the GPU.
MetricType
Some algorithms support both an inner product version and a L2 search version.