From f1997ff0120896e6f2ba5a5bb751cd46e060b64e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=AE=8F=E7=AC=8B?= Date: Fri, 17 May 2024 11:32:50 +0800 Subject: [PATCH] update constraints of points_in_polygons --- mmcv/ops/points_in_polygons.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mmcv/ops/points_in_polygons.py b/mmcv/ops/points_in_polygons.py index 25b641d961..8d3bc8dd48 100644 --- a/mmcv/ops/points_in_polygons.py +++ b/mmcv/ops/points_in_polygons.py @@ -19,9 +19,8 @@ def points_in_polygons(points: Tensor, polygons: Tensor) -> Tensor: polygons (torch.Tensor): It has shape (M, 8), indicating (x1, y1, x2, y2, x3, y3, x4, y4). M means the number of ground truth polygons. - constraints: The absolute value of input range from e-10 to - e10 on NPU. - + constraints: The number of significant digits for the input-arguments + are between -10 and 10 when running on Ascend device. Returns: torch.Tensor: Return the result with the shape of (B, M),