From 98393a3cc50be499a40be7e0d991170a49ef3256 Mon Sep 17 00:00:00 2001 From: momo609 <963372609@qq.com> Date: Thu, 29 Feb 2024 17:29:26 +0800 Subject: [PATCH] fix bug. --- mmcv/ops/csrc/pytorch/npu/points_in_polygons_npu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmcv/ops/csrc/pytorch/npu/points_in_polygons_npu.cpp b/mmcv/ops/csrc/pytorch/npu/points_in_polygons_npu.cpp index f282afeed3..6b8f08635a 100644 --- a/mmcv/ops/csrc/pytorch/npu/points_in_polygons_npu.cpp +++ b/mmcv/ops/csrc/pytorch/npu/points_in_polygons_npu.cpp @@ -12,7 +12,7 @@ void points_in_polygons_npu(const Tensor points, Tensor polygons, Tensor output, "The batch of polygons tensor must be less than MAX_POLYGONS_BATCH"); at::Tensor trans_polygons = polygons.transpose(0, 1); OpCommand cmd; - at::Tensor new_trans_polygons = NpuUtils::format_contiguous(trans_polygons); + at::Tensor new_trans_polygons = trans_polygons.contiguous(); cmd.Name("PointsInPolygons") .Input(points, (string) "points") .Input(new_trans_polygons, (string) "polygons")