Skip to content

Commit

Permalink
uint8_t visno
Browse files Browse the repository at this point in the history
Summary: Use uint8_t instead of uint32_t in faiss::HNSW::MinimaxHeap.visited

Differential Revision: D46125491

fbshipit-source-id: 0cce2dac53907b463e2edbe614ced1acc40144dc
  • Loading branch information
alexanderguzhva authored and facebook-github-bot committed May 23, 2023
1 parent fd09e51 commit 1668a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faiss/impl/AuxIndexStructures.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ struct FAISS_API InterruptCallback {
/// set implementation optimized for fast access.
struct VisitedTable {
std::vector<uint8_t> visited;
int visno;
uint8_t visno;

explicit VisitedTable(int size) : visited(size), visno(1) {}

Expand Down

0 comments on commit 1668a6a

Please sign in to comment.