Skip to content
Discussion options

You must be logged in to vote

I found a function that did what I needed: stats = faiss.cvar.indexIVF_stats, stats is a global variable that can get the IndexIVFStats struct:

struct IndexIVFStats {
    size_t nq;                // nb of queries run
    size_t nlist;             // nb of inverted lists scanned
    size_t ndis;              // nb of distances computed
    size_t nheap_updates;     // nb of times the heap was updated
    double quantization_time; // time spent quantizing vectors (in ms)
    double search_time;       // time spent searching lists (in ms)

    IndexIVFStats() {
        reset();
    }
    void reset();
    void add(const IndexIVFStats& other);
};

If you want to use stats more than once, refr…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Lok-Yat-man
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant