From 7b7d0d0caf85fc2d104ac285cfa367ff46490fa1 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Tue, 8 Jan 2019 13:30:09 +0800 Subject: [PATCH] Change hash function back test=develop --- paddle/fluid/operators/hash_op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/hash_op.h b/paddle/fluid/operators/hash_op.h index 1ed3ffe9aa2..9781bb0f453 100644 --- a/paddle/fluid/operators/hash_op.h +++ b/paddle/fluid/operators/hash_op.h @@ -45,7 +45,7 @@ class HashKerel : public framework::OpKernel { for (int idx = 0; idx < seq_length; ++idx) { for (int ihash = 0; ihash != num_hash; ++ihash) { output[idx * num_hash + ihash] = - XXH32(input, sizeof(int) * last_dim, ihash) % mod_by; + XXH64(input, sizeof(int) * last_dim, ihash) % mod_by; } input += last_dim; } -- GitLab