Change hash function back

test=develop
revert-15207-remove_op_handle_lock_and_fix_var
minqiyang 6 years ago
parent 5979953720
commit 7b7d0d0caf

@ -45,7 +45,7 @@ class HashKerel : public framework::OpKernel<T> {
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;
}

Loading…
Cancel
Save