Skip to content

Commit 63a67ed

Browse files
Remove unused variable causing warnings (#76)
Co-authored-by: abhisek <@Versi0nC0ntr0l>
1 parent 96859d6 commit 63a67ed

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

torchsparse/src/hashmap/hashmap_cpu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ HashTableCPU::lookup_vals(const int64_t * const keys, int64_t * const results, c
2626

2727

2828

29-
int
29+
void
3030
HashTableCPU::insert_vals(const int64_t * const keys, const int64_t * const vals, const int n) {
3131
for(int i = 0; i < 10; i++){
3232
printf("%d, %d, %d, %d\n", i, i<n, n, i<10);

torchsparse/src/hashmap/hashmap_cpu_header.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class HashTableCPU {
2121
//hashmap.set_empty_key(0);
2222
}
2323
~HashTableCPU(){}
24-
int insert_vals(const int64_t * const keys, const int64_t * const vals, const int n);
24+
void insert_vals(const int64_t * const keys, const int64_t * const vals, const int n);
2525
void lookup_vals(const int64_t * const keys, int64_t * const results, const int n);
2626

2727
};

torchsparse/src/interpolation/devox_cpu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ at::Tensor cpu_devoxelize_forward(
99
const at::Tensor indices,
1010
const at::Tensor weight)
1111
{
12-
int b = feat.size(0);
12+
//int b = feat.size(0);
1313
//printf("%d\n", b);
1414
int c = feat.size(1);
1515
int N = indices.size(0);

torchsparse/src/interpolation/devox_deterministic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ at::Tensor deterministic_devoxelize_forward(
99
const at::Tensor indices,
1010
const at::Tensor weight)
1111
{
12-
int b = feat.size(0);
12+
//int b = feat.size(0);
1313
//printf("%d\n", b);
1414
int c = feat.size(1);
1515
int N = indices.size(0);

torchsparse/src/others/insertion_cpu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ at::Tensor cpu_insertion_backward(
3636
//return group_point_forward_gpu(points, indices);
3737

3838
int c = top_grad.size(1);
39-
int N1 = counts.size(0);
39+
//int N1 = counts.size(0);
4040
at::Tensor bottom_grad = torch::zeros({N, c}, at::device(idx.device()).dtype(at::ScalarType::Float));
4141
for (int i = 0; i < N; i++)
4242
{

0 commit comments

Comments
 (0)