From c5b01a2ad58bfe42138bd3ecdb01643cb37e4109 Mon Sep 17 00:00:00 2001 From: Taekjin LEE Date: Tue, 10 Dec 2024 18:20:28 +0900 Subject: [PATCH] fix: remove redundant index check Signed-off-by: Taekjin LEE --- .../lib/preprocess/preprocess_kernel.cu | 2 -- 1 file changed, 2 deletions(-) diff --git a/perception/autoware_lidar_centerpoint/lib/preprocess/preprocess_kernel.cu b/perception/autoware_lidar_centerpoint/lib/preprocess/preprocess_kernel.cu index 56bbdd85c79b7..2d1f77fe6dac6 100644 --- a/perception/autoware_lidar_centerpoint/lib/preprocess/preprocess_kernel.cu +++ b/perception/autoware_lidar_centerpoint/lib/preprocess/preprocess_kernel.cu @@ -192,8 +192,6 @@ __global__ void generateBaseFeatures_kernel( if (voxel_idx_inverted >= grid_x_size || voxel_idy >= grid_y_size) return; unsigned int voxel_idx = grid_x_size - 1 - voxel_idx_inverted; - if (voxel_idx >= grid_x_size || voxel_idy >= grid_y_size) return; - unsigned int voxel_index = voxel_idy * grid_x_size + voxel_idx; unsigned int count = mask[voxel_index]; if (!(count > 0)) return;