Skip to content

Commit

Permalink
fix: Fix deprecation warnings in roiware_utils.h
Browse files Browse the repository at this point in the history
Related to issue #15
  • Loading branch information
TomSchammo committed Jan 10, 2024
1 parent 9b9dfe0 commit f18c000
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LidarAug/cpp/include/roiware_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ inline int points_in_boxes_cpu(at::Tensor boxes_tensor, at::Tensor pts_tensor,
int boxes_num = boxes_tensor.size(0);
int pts_num = pts_tensor.size(0);

const float *boxes = boxes_tensor.data<float>();
const float *pts = pts_tensor.data<float>();
int *pts_indices = pts_indices_tensor.data<int>();
const float *boxes = boxes_tensor.data_ptr<float>();
const float *pts = pts_tensor.data_ptr<float>();
int *pts_indices = pts_indices_tensor.data_ptr<int>();

float local_x = 0, local_y = 0;
for (int i = 0; i < boxes_num; i++) {
Expand Down

0 comments on commit f18c000

Please sign in to comment.