13 #include "GpuIndexIVF.h"
15 namespace faiss {
struct IndexIVFFlat; }
17 namespace faiss {
namespace gpu {
67 void reset()
override;
90 size_t reserveMemoryVecs_;
GpuIndexIVFFlat(GpuResources *resources, const faiss::IndexIVFFlat *index, GpuIndexIVFFlatConfig config=GpuIndexIVFFlatConfig())
void searchImpl_(faiss::Index::idx_t n, const float *x, faiss::Index::idx_t k, float *distances, faiss::Index::idx_t *labels) const override
Called from GpuIndex for search.
void copyFrom(const faiss::IndexIVFFlat *index)
bool useFloat16IVFStorage
void addImpl_(faiss::Index::idx_t n, const float *x, const faiss::Index::idx_t *ids) override
Called from GpuIndex for add/add_with_ids.
void train(Index::idx_t n, const float *x) override
void copyTo(faiss::IndexIVFFlat *index) const
void reserveMemory(size_t numVecs)
Reserve GPU memory in our inverted lists for this number of vectors.
long idx_t
all indices are this type
void reset() override
removes all elements from the database.
MetricType
Some algorithms support both an inner product vetsion and a L2 search version.