diff --git a/paddle/fluid/operators/hash_op.h b/paddle/fluid/operators/hash_op.h index 1ed3ffe9aa2d68c73f0ca4b5427f0ba7a693524c..9781bb0f453642cefb3eb59a05389c339a7de39d 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; }