From c34826da4da3c5b3d2e007479d134fd71b2f8984 Mon Sep 17 00:00:00 2001 From: raver119 Date: Sun, 1 Sep 2019 22:06:01 +0300 Subject: [PATCH] fixed args Signed-off-by: raver119 --- libnd4j/include/ops/declarable/helpers/cpu/hamming.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libnd4j/include/ops/declarable/helpers/cpu/hamming.cpp b/libnd4j/include/ops/declarable/helpers/cpu/hamming.cpp index 62bf3ff4c..687dc0bde 100644 --- a/libnd4j/include/ops/declarable/helpers/cpu/hamming.cpp +++ b/libnd4j/include/ops/declarable/helpers/cpu/hamming.cpp @@ -59,7 +59,7 @@ namespace nd4j { auto _x = static_cast(xBuffer[e]); auto _y = static_cast(yBuffer[e]); - intermediate[omp_get_thread_num()] += hamming_distance(_x ^ _y); + intermediate[omp_get_thread_num()] += hamming_distance(_x, _y); } } else if (xEws > 1 && yEws > 1 && x.ordering() == y.ordering()) { @@ -68,7 +68,7 @@ namespace nd4j { auto _x = static_cast(xBuffer[e * xEws]); auto _y = static_cast(yBuffer[e * yEws]); - intermediate[omp_get_thread_num()] += hamming_distance(_x ^ _y); + intermediate[omp_get_thread_num()] += hamming_distance(_x, _y); } } else { PRAGMA_OMP_PARALLEL_FOR @@ -76,7 +76,7 @@ namespace nd4j { auto _x = static_cast(x.e(e)); auto _y = static_cast(y.e(e)); - intermediate[omp_get_thread_num()] += hamming_distance(_x ^ _y); + intermediate[omp_get_thread_num()] += hamming_distance(_x, _y); } }