Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
cevian committed Dec 4, 2023
1 parent c605496 commit 7dd72e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion timescale_vector/src/access_method/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,12 @@ impl ListSearchResult {
}
let n = &mut self.best_candidate[pos];
n.visited = true;
debug1!("visiting pos {}, distance {}", pos, n.distance);
debug1!(
"visiting pos {}, distance {} ip {:?}",
pos,
n.distance,
n.index_pointer
);
Some((n.index_pointer, n.distance))
}
None => None,
Expand Down
1 change: 1 addition & 0 deletions timescale_vector/src/access_method/starting_ids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ impl StartingIds {
*score,
self.init_index_values[*idx],
vector[*idx],
self.init_index_pointers[*idx],
distance(vector, node.vector.as_slice()),
//self.mean[*idx],
//self.m2[*idx] / self.count as f32,
Expand Down

0 comments on commit 7dd72e9

Please sign in to comment.