We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2caf084 commit 6719899Copy full SHA for 6719899
torchsparse/backend/hash/hash_cpu.cpp
@@ -26,7 +26,7 @@ void cpu_kernel_hash_wrapper(int N, int K, const int *data,
26
for (int j = 0; j < 3; j++) {
27
cur_coord[j] = data[i * 4 + j] + kernel_offset[k * 3 + j];
28
}
29
- cur_coord[3] = data[3];
+ cur_coord[3] = data[i * 4 + 3];
30
uint64_t hash = 14695981039346656037UL;
31
for (int j = 0; j < 4; j++) {
32
hash ^= (unsigned int)cur_coord[j];
0 commit comments