[mlpack-git] master: Increment avgIndicesReturned directly. (44c7c35)
gitdub at mlpack.org
gitdub at mlpack.org
Fri Jul 8 16:27:23 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/425324bf7fb7c86c85d10a909d8a59d4f69b7164...44c7c3578f5fddb1dc15b42e8c52861ba987a37e
>---------------------------------------------------------------
commit 44c7c3578f5fddb1dc15b42e8c52861ba987a37e
Author: Ryan Curtin <ryan at ratml.org>
Date: Fri Jul 8 16:27:23 2016 -0400
Increment avgIndicesReturned directly.
>---------------------------------------------------------------
44c7c3578f5fddb1dc15b42e8c52861ba987a37e
src/mlpack/methods/lsh/lsh_search_impl.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mlpack/methods/lsh/lsh_search_impl.hpp b/src/mlpack/methods/lsh/lsh_search_impl.hpp
index 794972c..bcb5795 100644
--- a/src/mlpack/methods/lsh/lsh_search_impl.hpp
+++ b/src/mlpack/methods/lsh/lsh_search_impl.hpp
@@ -929,7 +929,7 @@ Search(const size_t k,
// returned on average.
// Make atomic to avoid race conditions when multiple threads are running.
// #pragma omp atomic
- avgIndicesReturned = avgIndicesReturned + refIndices.n_elem;
+ avgIndicesReturned += refIndices.n_elem;
// Sequentially go through all the candidates and save the best 'k'
// candidates.
More information about the mlpack-git
mailing list