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