From a91a24e77a3e16f0336eb8b70770bdf5daa1154e Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Tue, 18 Sep 2018 21:08:31 +0100 Subject: [PATCH] Fix #558 - Make `M` an integer (#589) * Fix #558 - Make `d` an integer * Use int() --- tests/test_index_accuracy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_index_accuracy.py b/tests/test_index_accuracy.py index e7ff6fa42..419d7d74d 100644 --- a/tests/test_index_accuracy.py +++ b/tests/test_index_accuracy.py @@ -59,7 +59,7 @@ kprobe = int(np.sqrt(ncentroids)) nbits = d # Parameters for indexes involving PQ -M = d / 8 # for PQ: #subquantizers +M = int(d / 8) # for PQ: #subquantizers nbits_per_index = 8 # for PQ