Skip to content

Commit

Permalink
hard code more params
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanhaoji2 committed Nov 4, 2023
1 parent 2862ddd commit e6268ec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ Index<T, TagT, LabelT>::Index(Metric m, const size_t dim, const size_t max_point
// add missing param
_indexingAlpha = 1.2f;
_indexingRange = 60;

if (_query_scratch.size() == 0)
{
_indexingQueueSize = 200;
std::uint32_t num_threads = 42;
initialize_query_scratch(num_threads, _indexingQueueSize, _indexingQueueSize, (uint32_t)_max_range_of_loaded_graph, _indexingMaxC,
_dim, _bitmask_buf._bitmask_size);
}
}

template <typename T, typename TagT, typename LabelT>
Expand Down

0 comments on commit e6268ec

Please sign in to comment.