Skip to content

Commit 6719899

Browse files
authored
Fix CPU hashing (#173)
1 parent 2caf084 commit 6719899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchsparse/backend/hash/hash_cpu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void cpu_kernel_hash_wrapper(int N, int K, const int *data,
2626
for (int j = 0; j < 3; j++) {
2727
cur_coord[j] = data[i * 4 + j] + kernel_offset[k * 3 + j];
2828
}
29-
cur_coord[3] = data[3];
29+
cur_coord[3] = data[i * 4 + 3];
3030
uint64_t hash = 14695981039346656037UL;
3131
for (int j = 0; j < 4; j++) {
3232
hash ^= (unsigned int)cur_coord[j];

0 commit comments

Comments
 (0)