From f18c00009bf916272689b3f78fa2268beb0d2011 Mon Sep 17 00:00:00 2001 From: Tom Schammo Date: Wed, 10 Jan 2024 13:17:50 +0100 Subject: [PATCH] fix: Fix deprecation warnings in `roiware_utils.h` Related to issue #15 --- LidarAug/cpp/include/roiware_utils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LidarAug/cpp/include/roiware_utils.h b/LidarAug/cpp/include/roiware_utils.h index f411bb3..a6856a3 100644 --- a/LidarAug/cpp/include/roiware_utils.h +++ b/LidarAug/cpp/include/roiware_utils.h @@ -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(); - const float *pts = pts_tensor.data(); - int *pts_indices = pts_indices_tensor.data(); + const float *boxes = boxes_tensor.data_ptr(); + const float *pts = pts_tensor.data_ptr(); + int *pts_indices = pts_indices_tensor.data_ptr(); float local_x = 0, local_y = 0; for (int i = 0; i < boxes_num; i++) {