Skip to content

Commit

Permalink
Avoid designator initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
achirkin committed Mar 23, 2024
1 parent 00584a2 commit 0cf0d3c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cpp/test/neighbors/ann_cagra.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,10 @@ inline std::vector<AnnCagraInputs> generate_inputs()
for (uint32_t pq_len : {2}) { // for now, only pq_len = 2 is supported, more options coming soon
for (uint32_t vq_n_centers : {100, 1000}) {
for (auto input : inputs2) {
input.compression.emplace(
vpq_params{.pq_dim = input.dim / pq_len, .vq_n_centers = vq_n_centers});
vpq_params ps{};
ps.pq_dim = input.dim / pq_len;
ps.vq_n_centers = vq_n_centers;
input.compression.emplace(ps);
inputs.push_back(input);
}
}
Expand Down

0 comments on commit 0cf0d3c

Please sign in to comment.