Skip to content

Commit

Permalink
Save number of points loaded in the label file for checking later
Browse files Browse the repository at this point in the history
  • Loading branch information
gopal-msr committed Oct 1, 2024
1 parent a5f3d2e commit 532ab2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/in_mem_filter_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ namespace diskann {
get_label_file_metadata(label_file_content, num_pts_in_label_file,
num_total_labels);

_num_points = num_pts_in_label_file;

_pts_to_label_offsets = new uint32_t[num_pts_in_label_file];
_pts_to_label_counts = new uint32_t[num_pts_in_label_file];
_pts_to_labels = new LabelT[num_total_labels];
Expand Down

0 comments on commit 532ab2f

Please sign in to comment.