Fix compile gcc 7.3.0 (#1593)
Summary: A small compilation issue with gcc 7.3.0, does not appear with 7.4.0. Also updated the readme. Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1593 Reviewed By: beauby Differential Revision: D25705885 Pulled By: mdouze fbshipit-source-id: 920b35264463cdd6ad10bbb09e07cf483fcaa724pull/1605/head
parent
4774951982
commit
05774f1996
|
@ -4,6 +4,10 @@ Faiss is a library for efficient similarity search and clustering of dense vecto
|
|||
|
||||
## NEWS
|
||||
|
||||
*NEW: version 1.6.5 (2020-11-20) pytorch / faiss interoperability improvements *
|
||||
|
||||
*NEW: version 1.6.4 (2020-10-20) Move to cmake -- Windows support*
|
||||
|
||||
*NEW: version 1.6.3 (2020-03-27) IndexBinaryHash, GPU support for alternative distances.*
|
||||
|
||||
*NEW: version 1.6.1 (2019-11-29) bugfix.*
|
||||
|
|
|
@ -224,10 +224,8 @@ void IndexIVFPQFastScan::add_with_ids (
|
|||
for (idx_t i0 = 0; i0 < n; i0 += bs) {
|
||||
idx_t i1 = std::min (n, i0 + bs);
|
||||
if (verbose) {
|
||||
printf(
|
||||
" IndexIVFPQFastScan::add_with_ids %"
|
||||
PRId64 ":%" PRId64 "\n", i0, i1
|
||||
);
|
||||
printf(" IndexIVFPQFastScan::add_with_ids %zd: %zd",
|
||||
size_t(i0), size_t(i1));
|
||||
}
|
||||
add_with_ids (i1 - i0, x + i0 * d,
|
||||
xids ? xids + i0 : nullptr);
|
||||
|
|
Loading…
Reference in New Issue