Skip to content

Commit 22b9d97

Browse files
Check if quantization problem disappears
1 parent 1c6f810 commit 22b9d97

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

parallel-hnsw/src/pq.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -322,16 +322,16 @@ impl<
322322
};
323323
let mut vids: Vec<VectorId> = Vec::new();
324324
eprintln!("quantizing");
325-
keepalive!(progress, {
326-
for chunk in comparator.vector_chunks() {
327-
let quantized: Vec<_> = chunk
328-
.into_par_iter()
329-
.map(|v| centroid_quantizer.quantize(&v))
330-
.collect();
331-
332-
vids.extend(quantized_comparator.store(Box::new(quantized.into_iter())));
333-
}
334-
});
325+
//keepalive!(progress, {
326+
for chunk in comparator.vector_chunks() {
327+
let quantized: Vec<_> = chunk
328+
.into_par_iter()
329+
.map(|v| centroid_quantizer.quantize(&v))
330+
.collect();
331+
332+
vids.extend(quantized_comparator.store(Box::new(quantized.into_iter())));
333+
}
334+
//});
335335

336336
eprintln!("generating");
337337
let hnsw: Hnsw<QuantizedComparator> =

0 commit comments

Comments
 (0)