Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add random subsampling for IVF methods #2077

Merged
merged 11 commits into from
Jan 23, 2024
Prev Previous commit
Next Next commit
Fix IdxT
  • Loading branch information
tfeher committed Jan 21, 2024
commit ca3eec72ab6737c56a36ab348a8be9aa879fc155
4 changes: 2 additions & 2 deletions cpp/include/raft/spatial/knn/detail/ann_utils.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,8 @@ void subsample(raft::resources const& res,
raft::device_matrix_view<T, IdxT> output,
int seed)
{
int64_t n_dim = output.extent(1);
int64_t n_train = output.extent(0);
IdxT n_dim = output.extent(1);
IdxT n_train = output.extent(0);
if (seed == -1 || n_train == n_samples) {
IdxT trainset_ratio = n_samples / n_train;
RAFT_LOG_INFO("Fixed stride subsampling");
Expand Down