Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cpp/src/neighbors/ivf_flat_c.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void* _build(cuvsResources_t res, cuvsIvfFlatIndexParams params, DLManagedTensor
build_params.conservative_memory_allocation = params.conservative_memory_allocation;

auto dataset = dataset_tensor->dl_tensor;
auto dim = dataset.shape[0];
auto dim = dataset.shape[1];

auto index = new cuvs::neighbors::ivf_flat::index<T, IdxT>(*res_ptr, build_params, dim);

Expand Down
2 changes: 1 addition & 1 deletion cpp/src/neighbors/ivf_pq_c.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void* _build(cuvsResources_t res, cuvsIvfPqIndexParams params, DLManagedTensor*
build_params.max_train_points_per_pq_code = params.max_train_points_per_pq_code;

auto dataset = dataset_tensor->dl_tensor;
auto dim = dataset.shape[0];
auto dim = dataset.shape[1];

auto index = new cuvs::neighbors::ivf_pq::index<IdxT>(*res_ptr, build_params, dim);

Expand Down